diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-01-04 13:36:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 13:36:13 (GMT) |
commit | 7d7817cf0f826e566d8370a0e974bbfed6611d91 (patch) | |
tree | 9d7e29dfd0e13cbdc6e0bed9bdca8f457ad12c4f /Doc/library/concurrent.futures.rst | |
parent | b949845b36b999185ed2bdf8a04dca1da39f3002 (diff) | |
download | cpython-7d7817cf0f826e566d8370a0e974bbfed6611d91.zip cpython-7d7817cf0f826e566d8370a0e974bbfed6611d91.tar.gz cpython-7d7817cf0f826e566d8370a0e974bbfed6611d91.tar.bz2 |
bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168)
* bpo-20369: concurrent.futures.wait() now deduplicates futures given as arg.
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Doc/library/concurrent.futures.rst')
-rw-r--r-- | Doc/library/concurrent.futures.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index c9f6aa1..0432fcd 100644 --- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst @@ -444,7 +444,8 @@ Module Functions .. function:: wait(fs, timeout=None, return_when=ALL_COMPLETED) Wait for the :class:`Future` instances (possibly created by different - :class:`Executor` instances) given by *fs* to complete. Returns a named + :class:`Executor` instances) given by *fs* to complete. Duplicate futures + given to *fs* are removed and will be returned only once. Returns a named 2-tuple of sets. The first set, named ``done``, contains the futures that completed (finished or cancelled futures) before the wait completed. The second set, named ``not_done``, contains the futures that did not complete |