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

Docs: being more explicit about why to use api.background.task #418

Open
butla opened this issue Feb 5, 2020 · 2 comments
Open

Docs: being more explicit about why to use api.background.task #418

butla opened this issue Feb 5, 2020 · 2 comments

Comments

@butla
Copy link

@butla butla commented Feb 5, 2020

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 use asyncio.create_task or loop,.run_in_executor for 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.task to asyncio purists like myself? :)

@taoufik07
Copy link
Owner

@taoufik07 taoufik07 commented Feb 5, 2020

Yes, we would love to !

@butla
Copy link
Author

@butla butla commented Feb 5, 2020

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.