Utils
- class segfast.utils.ForPoolExecutor(*args, **kwargs)[source]
A sequential executor of tasks in a for loop. Inherits
concurrent.futures.Executor
interface, so can serve as a drop-in replacement for eitherconcurrent.futures.ThreadPoolExecutor
orconcurrent.futures.ProcessPoolExecutor
when threads or processes spawning is undesirable.