]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Futur...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Jan 2026 06:52:18 +0000 (07:52 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Jan 2026 06:52:18 +0000 (12:22 +0530)
gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Future (GH-143288)
(cherry picked from commit a9ca49d9c699ce4040f1391d9054d88b4098466b)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Doc/library/concurrent.futures.rst

index 0a2fa48f9a35555b4cba17b265eeacfe6b067138..09d7a0d0ec21c335d2774c305fba2135345b00ea 100644 (file)
@@ -19,6 +19,11 @@ The asynchronous execution can be performed with threads, using
 :class:`ProcessPoolExecutor`.  Both implement the same interface, which is
 defined by the abstract :class:`Executor` class.
 
+:class:`concurrent.futures.Future` must not be confused with
+:class:`asyncio.Future`, which is designed for use with :mod:`asyncio`
+tasks and coroutines. See the :doc:`asyncio's Future <asyncio-future>`
+documentation for a detailed comparison of the two.
+
 .. include:: ../includes/wasm-notavail.rst
 
 Executor Objects