Skip to content

Commit 0699ae2

Browse files
authored
Update tasks.py
1 parent 3d2168f commit 0699ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/asyncio/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,9 +1008,9 @@ def create_eager_task_factory(custom_task_constructor):
10081008
used. E.g. `loop.set_task_factory(asyncio.eager_task_factory)`.
10091009
"""
10101010

1011-
def factory(loop, coro, *, name=None, context=None):
1011+
def factory(loop, coro, eager_start=True, **kwargs):
10121012
return custom_task_constructor(
1013-
coro, loop=loop, name=name, context=context, eager_start=True)
1013+
coro, loop=loop, eager_start=eager_start, **kwargs)
10141014

10151015
return factory
10161016

0 commit comments

Comments
 (0)