# uproot.TrivialExecutor

Defined in [uproot.source.futures](https://github.com/scikit-hep/uproot/blob/f1299d71fa4f435b1901386346c8a42adbd72642/src/uproot/source/futures.py) on [line 83](https://github.com/scikit-hep/uproot/blob/f1299d71fa4f435b1901386346c8a42adbd72642/src/uproot/source/futures.py#L83).

| **Inheritance order:**                                                                            |
|---------------------------------------------------------------------------------------------------|
| 1. [uproot.source.futures.Executor](uproot.source.futures.Executor.html.md)<br/>2. `abc.ABC` |

### *class* uproot.source.futures.TrivialExecutor

Formally satisfies the interface for a
[uproot.ThreadPoolExecutor](uproot.source.futures.ThreadPoolExecutor.html.md), but the
[submit](#uproot-source-futures-trivialexecutor-submit) method computes its
`task` synchronously.

<a id="uproot-source-futures-trivialexecutor-submit"></a>

## submit

Inherited from [uproot.source.futures.Executor](uproot.source.futures.Executor.html.md).

#### TrivialExecutor.submit(task, /, \*args, \*\*kwargs)

Immediately runs `task(*args, **kwargs)`.

<a id="uproot-source-futures-trivialexecutor-shutdown"></a>

## shutdown

Inherited from [uproot.source.futures.Executor](uproot.source.futures.Executor.html.md).

#### TrivialExecutor.shutdown(wait: bool = True)

Stop the executor and free its resources.

<a id="uproot-source-futures-trivialexecutor-closed"></a>

## closed

Inherited from [uproot.source.futures.Executor](uproot.source.futures.Executor.html.md).

#### TrivialExecutor.closed

True once the executor has started shutting down and no longer accepts
new tasks.
