Skip to content

Commit efa52ed

Browse files
miss-islingtonaisk
andauthored
[3.14] gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Future (GH-143288) (#143607)
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 16efe85 commit efa52ed

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
@@ -21,6 +21,11 @@ or separate processes, using :class:`ProcessPoolExecutor`.
2121
Each implements the same interface, which is defined
2222
by the abstract :class:`Executor` class.
2323

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

2631
Executor Objects

0 commit comments

Comments
 (0)