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.py573 def ensure_future(coro_or_future, *, loop=None): argument
578 if coroutines.iscoroutine(coro_or_future):
581 task = loop.create_task(coro_or_future)
585 elif futures.isfuture(coro_or_future):
586 if loop is not None and loop is not futures._get_loop(coro_or_future):
588 return coro_or_future
589 elif inspect.isawaitable(coro_or_future):
590 return ensure_future(_wrap_awaitable(coro_or_future), loop=loop)