You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
Save a reference to the result of this function, to avoid a task disappearing mid-execution. The event loop only keeps weak references to tasks. A task that isn’t referenced elsewhere may get garbage collected at any time, even before it’s done.
It's really easy to miss this and try to fire-and-forget. It would be great if flake8-async detected this.
The text was updated successfully, but these errors were encountered:
@Zac-HD this one might make sense to add to flake8-trio, is trivial to implement, and is supported by ruff (and would make more sense there to be moved under ASYNCxxx than as RUF006).
Checked the other two open issues, and they're already covered in flake8-trio.
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.
The text was updated successfully, but these errors were encountered: