Lines Matching full:task
9 classes. Asyncio has helpers that could be used to simplify this task.
37 Future and Task private constructors
40 :class:`asyncio.Future` and :class:`asyncio.Task` should be never created directly,
44 However, third-party *event loops* may *reuse* built-in future and task implementations
55 .. method:: Task.__init__(coro, *, loop=None, name=None, context=None)
57 Create a built-in task instance.
68 Task lifetime support
71 A third party task implementation should call the following functions to keep a task
74 .. function:: _register_task(task)
76 Register a new *task* as managed by *asyncio*.
78 Call the function from a task constructor.
80 .. function:: _unregister_task(task)
82 Unregister a *task* from *asyncio* internal structures.
84 The function should be called when a task is about to finish.
86 .. function:: _enter_task(loop, task)
88 Switch the current task to the *task* argument.
93 .. function:: _leave_task(loop, task)
95 Switch the current task back from *task* to ``None``.