Skip to content

Commit 5877410

Browse files
committed
Document the loop argument in ensure_future() method
1 parent 4af46b4 commit 5877410

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/asyncio-future.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ Future Functions
4747
* a :class:`Task` object that would await on *obj*, if *obj* is an
4848
awaitable (:func:`inspect.isawaitable` is used for the test.)
4949

50-
If *obj* is neither of the above a :exc:`TypeError` is raised.
50+
If *obj* is neither of the above a :exc:`TypeError` is raised. The
51+
optional *loop* argument takes an object of :class:`EventLoop` to
52+
denote which event loop *obj* belongs to. By default *loop* is set
53+
to currently running event loop.
5154

5255
.. important::
5356

0 commit comments

Comments
 (0)