# uproot.source.futures.ResourceTrivialExecutor

Defined in [uproot.source.futures](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/source/futures.py) on [line 436](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/source/futures.py#L436).

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

### *class* uproot.source.futures.ResourceTrivialExecutor(resource)

* **Parameters:**
  **resource** ([uproot.source.chunk.Resource](uproot.source.chunk.Resource.html.md)) – Resource to
  wrap as [uproot.source.futures.ResourceFuture](uproot.source.futures.ResourceFuture.html.md) object.

A [uproot.source.futures.ResourceTrivialExecutor](uproot.source.futures.ResourceTrivialExecutor.html.md) is bound
to a resource, such as a file handle.

<a id="uproot-source-futures-resourcetrivialexecutor-close"></a>

## close

#### ResourceTrivialExecutor.close()

Stops the [uproot.source.futures.ResourceTrivialExecutor](uproot.source.futures.ResourceTrivialExecutor.html.md)

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

## submit

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

#### ResourceTrivialExecutor.submit(future: [ResourceFuture](uproot.source.futures.ResourceFuture.html.md#uproot.source.futures.ResourceFuture)) → [ResourceFuture](uproot.source.futures.ResourceFuture.html.md#uproot.source.futures.ResourceFuture)

Pass the `task` as a
[uproot.source.futures.ResourceFuture](uproot.source.futures.ResourceFuture.html.md) so that it will be
executed with its self._resource.

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

## shutdown

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

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

Stop the executor and free its resources.

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

## closed

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

#### ResourceTrivialExecutor.closed

True if the [uproot.source.futures.ResourceTrivialExecutor](uproot.source.futures.ResourceTrivialExecutor.html.md) has
been stopped.
