Wrap a coroutine or an awaitable in a future. If the argument is a Future, it is returned directly.
(coro_or_future, *, loop=None)
| 652 | |
| 653 | |
| 654 | def 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 | |
| 662 | def _ensure_future(coro_or_future, *, loop=None): |
no test coverage detected