
The existing ThreadPoolExecutor can only grow its workers pool, and does it until the size reaches max_workers. This change adds a new DynamicThreadPoolExecutor that can both grow and shrink the pool based on the proportion of the currently busy threads to the total number of threads. Change-Id: I5a92977b71a120748feb1c370cd3a0106b574f0a Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com> Signed-off-by: Julia Kreger <juliaashleykreger@gmail.com>
1.2 KiB
1.2 KiB
API Reference
Executors
futurist.GreenThreadPoolExecutor
futurist.ProcessPoolExecutor
futurist.SynchronousExecutor
futurist.ThreadPoolExecutor
futurist.DynamicThreadPoolExecutor
Futures
futurist.Future
futurist.GreenFuture
Periodics
futurist.periodics.PeriodicWorker
futurist.periodics.periodic
futurist.periodics.Watcher
Miscellaneous
futurist.ExecutorStatistics
Exceptions
futurist.RejectedSubmission
Waiters
futurist.waiters.wait_for_any
futurist.waiters.wait_for_all
futurist.waiters.DoneAndNotDoneFutures