Skip to content

Commit d12d7a9

Browse files
miss-islingtonaisk
andauthored
[3.13] gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Future (GH-143288) (#143608)
gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Future (GH-143288) (cherry picked from commit a9ca49d) Co-authored-by: AN Long <aisk@users.noreply.github.com>
1 parent 618a424 commit d12d7a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/concurrent.futures.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ The asynchronous execution can be performed with threads, using
1919
:class:`ProcessPoolExecutor`. Both implement the same interface, which is
2020
defined by the abstract :class:`Executor` class.
2121

22+
:class:`concurrent.futures.Future` must not be confused with
23+
:class:`asyncio.Future`, which is designed for use with :mod:`asyncio`
24+
tasks and coroutines. See the :doc:`asyncio's Future <asyncio-future>`
25+
documentation for a detailed comparison of the two.
26+
2227
.. include:: ../includes/wasm-notavail.rst
2328

2429
Executor Objects

0 commit comments

Comments
 (0)