Skip to content

SubmitExecutor

Bases: Protocol

Structural type for any concurrent.futures-style executor.

Only a .submit() method returning a Future is required, so a loky.get_reusable_executor() instance or an mpi4py.futures.MPIPoolExecutor both satisfy this without this module depending on either package.


submit

submit(fn, /, *args, **kwargs) -> Future