summaryrefslogtreecommitdiffstats
path: root/Lib/concurrent/futures/_base.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33238: Add InvalidStateError to concurrent.futures. (GH-7056)jhaydaman2018-05-301-0/+8
| | | | | | | Future.set_result and Future.set_exception now raise InvalidStateError if the futures are not pending or running. This mirrors the behavior of asyncio.Future, and prevents AssertionErrors in asyncio.wrap_future when set_result is called multiple times.
* bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor (#4241)Antoine Pitrou2017-11-041-0/+6
| | | | | | * bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor * Fix docstring
* bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` ↵Łukasz Langa2017-09-291-2/+1
| | | | | | | (#3830) This was possible before. GH-1560 introduced a regression after 3.6.2 got released where only sequences were accepted now. This commit addresses this problem.
* Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (#3270)Antoine Pitrou2017-09-031-7/+19
|
* bpo-27144: concurrent.futures as_complete and map iterators do not keep ↵Grzegorz Grzywacz2017-09-011-9/+28
| | | | | | | | | | reference to returned object (#1560) * bpo-27144: concurrent.futures as_complie and map iterators do not keep reference to returned object * Some nits. Improve wordings in docstrings and comments, and avoid relying on sys.getrefcount() in tests.
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #11271: concurrent.futures.Executor.map() now takes a *chunksize*Antoine Pitrou2014-10-041-1/+5
| | | | | | | | | | argument to allow batching of tasks in child processes and improve performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
* | Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-251-6/+9
|/ | | | class name instead of hardcoded one.
* Issue #20319: concurrent.futures.wait() can block forever even if Futures ↵Brian Quinlan2014-02-011-2/+4
| | | | have completed
* Fix issue #20367: concurrent.futures.as_completed() for duplicate arguments.Guido van Rossum2014-01-261-2/+4
| | | | Patch by Glenn Langford.
* Merge 3.3, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-1/+1
|\ | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Merge 3.2, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-1/+1
| |\ | | | | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| | * Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
| * | Fix docstring typo in concurrent.futures.FutureEli Bendersky2013-01-171-1/+1
| | |
* | | Fix docstring typo in concurrent.futures.FutureEli Bendersky2013-01-171-1/+1
| | |
* | | utilize yield fromPhilip Jenvey2012-10-011-2/+1
|/ /
* | #15015: Fix accessing an non-existing attribute.Brian Quinlan2012-06-111-2/+2
| |
* | Issue #14406: Fix a race condition when using ↵Antoine Pitrou2012-03-311-3/+5
|\ \ | |/ | | | | | | | | `concurrent.futures.wait(return_when=ALL_COMPLETED)`. Patch by Matt Joiner.
| * Issue #14406: Fix a race condition when using ↵Antoine Pitrou2012-03-311-3/+5
| | | | | | | | | | | | `concurrent.futures.wait(return_when=ALL_COMPLETED)`. Patch by Matt Joiner.
* | Remove unused or redundant imports in concurrent.futures and multiprocessing.Florent Xicluna2011-11-111-1/+0
| |
* | Issue #11777: Executor.map does not submit futures until iter.next() is calledBrian Quinlan2011-04-071-9/+13
|/
* Does not install a logging handler. Fixes issue 10626.Brian Quinlan2010-12-281-2/+0
|
* Removes an inefficient spin loop in as_completedBrian Quinlan2010-11-171-6/+35
|
* Fixes 9903: test_concurrent_futures writes on stderrBrian Quinlan2010-10-061-3/+2
|
* Initial implementation of PEP 3148Brian Quinlan2010-09-181-0/+541