Skip to content
Discussion options

You must be logged in to vote

@skyguy For efficiency, asyncio.sleep is a bit "magic" and isn't implemented as a true coroutine. You'll need to wrap it in a task to make this work.

(It's worth it though, this optimisation means you can do await asyncio.sleep without causing an allocation)

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@peterhinch
Comment options

@skyguy
Comment options

Comment options

You must be logged in to vote
1 reply
@skyguy
Comment options

Answer selected by skyguy
Comment options

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