MCPcopy Index your code
hub / github.com/python/cpython / create_task

Function create_task

Lib/asyncio/tasks.py:389–395  ·  view source on GitHub ↗

Schedule the execution of a coroutine object in a spawn task. Return a Task object.

(coro, **kwargs)

Source from the content-addressed store, hash-verified

387
388
389def create_task(coro, **kwargs):
390 """Schedule the execution of a coroutine object in a spawn task.
391
392 Return a Task object.
393 """
394 loop = events.get_running_loop()
395 return loop.create_task(coro, **kwargs)
396
397
398# wait() and as_completed() similar to those in PEP 3148.

Callers

nothing calls this directly

Calls 1

create_taskMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…