asyncio.ensure_future(coro_or_future, *, loop=None)
Schedule the execution of a coroutine object: wrap it in a future. Return a Task
object.
If the argument is a Future
, it is returned directly.
New in version 3.4.4.
Changed in version 3.5.1: The function accepts any awaitable object.
See also
The AbstractEventLoop.create_task()
method.
Please login to continue.