Home
last modified time | relevance | path

Searched refs:coro_or_future (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Lib/asyncio/
Dtasks.py656 def ensure_future(coro_or_future, *, loop=None): argument
661 if coroutines.iscoroutine(coro_or_future):
664 task = loop.create_task(coro_or_future)
668 elif futures.isfuture(coro_or_future):
669 if loop is not None and loop is not futures._get_loop(coro_or_future):
672 return coro_or_future
673 elif inspect.isawaitable(coro_or_future):
674 return ensure_future(_wrap_awaitable(coro_or_future), loop=loop)