Skip to content

Asynchronous sleep statements gets cancelled instantly when used with uvicorn and starlette #1795

Discussion options

You must be logged in to vote

I upgraded to Python 3.11 and the issue seems to be fixed. Also it may be that having a generator inside an async function is a bad idea, and that't what was causing all the problems.

This issue can be closed now.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@Mys7erio
Comment options

@Mys7erio
Comment options

@Kludex
Comment options

@Mys7erio
Comment options

@Mys7erio
Comment options

Comment options

You must be logged in to vote
3 replies
@Mys7erio
Comment options

@euri10
Comment options

euri10 Dec 21, 2022
Collaborator

@Mys7erio
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Mys7erio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants