-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Checks for asyncio.create_task()
#207
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
via Zac-HD/flake8-async-archive#5: the docs for asyncio.create_task say:
It's really easy to miss this and try to fire-and-forget. It would be great if flake8-async detected this.
I also wonder whether we should have an optional check which recommends using
TaskGroup
instead ofasyncio.create_task
,loop.run_until_complete
, etc, but on balance think it's better to have documentation explaining why you should useanyio.TaskGroup
instead (e.g. better cancellation semantics as part of structured concurrency).The text was updated successfully, but these errors were encountered: