MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / ensure_future

Function ensure_future

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:654–659  ·  view source on GitHub ↗

Wrap a coroutine or an awaitable in a future. If the argument is a Future, it is returned directly.

(coro_or_future, *, loop=None)

Source from the content-addressed store, hash-verified

652
653
654def ensure_future(coro_or_future, *, loop=None):
655 """Wrap a coroutine or an awaitable in a future.
656
657 If the argument is a Future, it is returned directly.
658 """
659 return _ensure_future(coro_or_future, loop=loop)
660
661
662def _ensure_future(coro_or_future, *, loop=None):

Callers 3

wait_forFunction · 0.85
as_completedFunction · 0.85
callbackFunction · 0.85

Calls 1

_ensure_futureFunction · 0.85

Tested by

no test coverage detected