#36315: use task groups/cancel scopes where possible
-------------------------------------------+--------------------------
Reporter: Thomas Grainger | Owner: (none)
Type: Uncategorized | Status: assigned
Component: Uncategorized | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+--------------------------
eg replace asyncio.create_task with a Task Group
replace wait_for/wait with Timeout/CancelSceop
create a function for asyncio.gather that uses a Task Group
This could use anyio.create_task_group and anyio.CancelScope, but now
there's 3.11 asyncio.TaskGroup and asyncio.Timeout are available.
Obviously I'm biased and think the anyio versions are a better choice, but
it's easier to add asyncio.TaskGroup/Timeout and worry about trio support
in the 'future'.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36315>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.