Sequential executor
A concurrent.futures.Executor interface that forces sequential execution.
class SequentialExecutor
#
Bases: Executor
A Executor interface for sequential execution.
def submit(fn, /, *args, **kwargs)
#
Submit a function to be executed.
| PARAMETER | DESCRIPTION |
|---|---|
fn |
The function to execute.
TYPE:
|
*args |
The positional arguments to pass to the function.
TYPE:
|
**kwargs |
The keyword arguments to pass to the function.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Future[R]
|
A future that is already resolved with the result/exception of the function. |