summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradisbladis <adis@blad.is>2017-06-09 06:28:59 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-09 06:28:59 (GMT)
commit824f6879121413e09439fffef54580413e44bf46 (patch)
treeb74d12d476217684b0eceb37a9458842b1b62ccb
parent2e9cd5825c5ccdbb6f65a57c0c7941078e003c14 (diff)
downloadcpython-824f6879121413e09439fffef54580413e44bf46.zip
cpython-824f6879121413e09439fffef54580413e44bf46.tar.gz
cpython-824f6879121413e09439fffef54580413e44bf46.tar.bz2
bpo-24755: Document asyncio.wrap_future (GH-603)
-rw-r--r--Doc/library/asyncio-task.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 558d17c..804f192 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -540,6 +540,11 @@ Task functions
.. deprecated:: 3.4.4
+.. function:: wrap_future(future, \*, loop=None)
+
+ Wrap a :class:`concurrent.futures.Future` object in a :class:`Future`
+ object.
+
.. function:: gather(\*coros_or_futures, loop=None, return_exceptions=False)
Return a future aggregating results from the given coroutine objects or