Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocs: being more explicit about why to use api.background.task #418
Labels
Comments
|
Yes, we would love to ! |
|
Nice. I'll try to write something up in the next few days |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! When I was reading the docs and I saw
api.background.task, the first thing that popped into my head was "but you can just useasyncio.create_taskorloop,.run_in_executorfor that without inventing something new!". But then I noticed that it also passes the context vars to the synchronous backround stuff, which is nice. Wonder why that's not the case in the stdlib, cause it would be nice :)All I'm asking is: would you welcome a docs PR explaining
api.background.taskto asyncio purists like myself? :)