Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Further docstring refinement
  • Loading branch information
jbower-fb authored May 9, 2023
commit fe94a2bf407b765e690be8c3f9d3e421081e6ffe
8 changes: 4 additions & 4 deletions Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,10 @@ def create_eager_task_factory(custom_task_constructor):
that returns a Task-compatible object and has a signature compatible
with `Task.__init__`; it must have the `eager_start` keyword argument.

Most applications will use `Task` for `my_task_constructor` and in this
case there's no need to call `create_eager_task_factory()` directly.
Instead the global `eager_task_factory` instance can be used. E.g.
`loop.set_task_factory(asyncio.eager_task_factory)`.
Most applications will use `Task` for `custom_task_constructor` and in
this case there's no need to call `create_eager_task_factory()`
directly. Instead the global `eager_task_factory` instance can be
used. E.g. `loop.set_task_factory(asyncio.eager_task_factory)`.
"""

def factory(loop, coro, *, name=None, context=None):
Expand Down