loki.batch.executor

A dummy “executor” utility that allows parallel non-threaded execution under the same API as thread or ProcessPoolExecutors.

Classes

SerialExecutor()

A dummy "executor" utility that allows parallel non-threaded execution with the same API as a ProcessPoolExecutors.

class SerialExecutor

Bases: Executor

A dummy “executor” utility that allows parallel non-threaded execution with the same API as a ProcessPoolExecutors.

submit(fn, *args, **kwargs)

Executes the callable, fn as fn(*args, **kwargs) and wraps the return value in a Future object.

map(fn, *args, **kwargs)

Maps the callable fn via map(fn, *args, **kwargs).