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 either concurrent.futures.ThreadPoolExecutor or concurrent.futures.ProcessPoolExecutor when threads or processes spawning is undesirable.