cpython/Lib/concurrent/futures
Miss Islington (bot) 3a4aa6ac55
bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599)
Use a monotonic clock to compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order to prevent timeouts from deviating when the system clock is adjusted.

This may not be sufficient on all systems. On POSIX for example, the actual waiting (e.g. in ``sem_timedwait``) is specified to rely on the CLOCK_REALTIME clock.
(cherry picked from commit a94ee12c26)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
2018-09-27 04:37:33 -07:00
..
__init__.py
_base.py bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599) 2018-09-27 04:37:33 -07:00
process.py [3.6] bpo-27144: concurrent.futures as_complete and map iterators do not keep reference to returned object (GH-1560) (#3266) 2017-09-01 19:16:46 +02:00
thread.py [3.6] bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. (GH-2315) (#3276) 2017-09-03 14:52:20 -07:00