Skip to content

Commit 4074c1c

Browse files
committed
bpo-24755: Document asyncio.wrap_future
1 parent d4e8928 commit 4074c1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/asyncio-task.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,14 @@ Task functions
540540

541541
.. deprecated:: 3.4.4
542542

543+
.. function:: wrap_future(future, \*, loop=None)
544+
545+
Wrap a :class:`concurrent.futures.Future` object in a
546+
:class:`Future` object.
547+
548+
When the original :class:`concurrent.futures.Future` is completed
549+
so is the wrapping :class:`Future`.
550+
543551
.. function:: gather(\*coros_or_futures, loop=None, return_exceptions=False)
544552

545553
Return a future aggregating results from the given coroutine objects or

0 commit comments

Comments
 (0)