PyDocs

Nav

Networking and Interprocess Communication

loop.create_task

asyncio

methodnot WASI
  • loop.create_task(coro, *, name=None, context=None, eager_start=None, **kwargs)
Schedule the execution of coroutine coro. Return a Task object.
Changed in 3.8, 3.11, 3.13.3, 3.13.4, 3.14
  • 3.8: Added the name parameter.
  • 3.11: Added the context parameter.
  • 3.13.3: Added kwargs which passes on arbitrary extra parameters, including name and context.
  • 3.13.4: Rolled back the change that passes on name and context (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compatibility with 3.13.3).
  • 3.14: All kwargs are now passed on. The eager_start parameter works with eager task factories.
0 Examples
No examples for asyncio/loop.create_task.
See Also
No see-alsos for asyncio/loop.create_task
0 Notes
No notes for loop.create_task