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
Improve create_eager_task_factory() docstring
  • Loading branch information
jbower-fb authored May 6, 2023
commit defcfe85b7f7045db96ad84f2b1f94de5f0a0b4d
4 changes: 2 additions & 2 deletions Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,8 +935,8 @@ def create_eager_task_factory(custom_task_constructor):
Creates a function suitable for use as a task factory on an event-loop.
The tasks created will be started immediately (rather than being first
scheduled to an event loop). The constructor argument can be any callable
that constructs a Task-compatible object and supports the eager_start
keyword argument.
that returns a ``Task`` compatible object and has a signature compatible
with ``Task.__init__``, including the ``eager_start`` keyword argument.
"""

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