cpython/Lib/concurrent
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
..
futures bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599) 2018-09-27 04:46:38 -07:00
__init__.py Initial implementation of PEP 3148 2010-09-18 22:35:02 +00:00