-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor cleanup_ctx implementation #3350
Comments
CleanupContext can have a We can add both
To remove I can proposal a new implementation this weekend. |
Remove can be done by |
I can easily fix the issue with But with
I don't see how we can keep order with insert |
That's why I propose to revert the change. Now aiohttp opens too much implementation details. |
Yes I thinks is better to revert the change. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
When I was working on type-annotating
web.Application
I found the inconsitency incleanup_ctx
implementation introduced by #3194cleanup_ctx.append()
acccepts a generator instance but iteration overcleanup_ctx
content returns internal objects.cleanup_ctx
doesn't unregisteron_startup
item.cleanup_ctx.insert(0, gen)
doesn't register a newon_startup
item.I afraid that mixing
on_startup
andcleanup_ctx
is impossible to implement in a non-controversial way.Maybe we need to revert the change back.
/cc @Maillol
The text was updated successfully, but these errors were encountered: