(coro, *, name=None)
return task
Schedule the execution of a coroutine object in a spawn task.

    Return a Task object.
Schedule the execution of a coroutine object in a spawn task.
Schedule the execution of a coroutine object in a spawn task .
def create_task(coro, *, name=None):
    """Schedule the execution of a coroutine object in a spawn task.

    Return a Task object.
    """
    loop = events.get_running_loop()
    task = loop.create_task(coro)
    _set_task_name(task, name)
    return task
def create_task ( coro , * , name = None ) : loop = events . get_running_loop ( ) task = loop . create_task ( coro ) _set_task_name ( task , name ) return task