cpython/Lib/concurrent/futures
Miss Islington (bot) 2b01121fd4
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:46:38 -07:00
..
__init__.py bpo-32596: Make lazy-load portable (GH-5316) 2018-01-26 10:53:31 +09:00
_base.py bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599) 2018-09-27 04:46:38 -07:00
process.py bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit (GH-6144) (GH-6445) 2018-04-10 20:35:02 +02:00
thread.py bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit (GH-6144) (GH-6445) 2018-04-10 20:35:02 +02:00