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