Skip to content
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

Add support for lifespan in ASGIDispatch #352

Closed
wants to merge 5 commits into from

Conversation

florimondmanca
Copy link
Member

@florimondmanca florimondmanca commented Sep 17, 2019

Refs #350

Don't know yet whether this should be considered or not, but I thought I'd give it a shot. :)

Random thoughts: handling errors correctly for this turned out to be way more complicated than I initially expected. The background_manager interface hasn't helped, but I think it can't easily be improved because we use class-based async context managers a lot, instead of e.g. using @asynccontextmanager, which would have the benefit of handling exceptions the right way all the time.

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me from a code perspective :) Waiting to hear from others too.

@tomchristie
Copy link
Member

As per #350 I'm kinda keen to punt on this. Whaddya reckon?

@florimondmanca
Copy link
Member Author

As per #350 I'm kinda keen to punt on this. Whaddya reckon?

Yep, sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants