uproot.source.futures.ResourceTrivialExecutor

Defined in uproot.source.futures on line 434.

Inheritance order:

  1. uproot.TrivialExecutor

  2. uproot.source.futures.Executor

  3. abc.ABC

class uproot.source.futures.ResourceTrivialExecutor(resource)
Parameters:

resource (uproot.source.chunk.Resource) – Resource to wrap as uproot.source.futures.ResourceFuture object.

A uproot.source.futures.ResourceTrivialExecutor is bound to a resource, such as a file handle.

close

ResourceTrivialExecutor.close()

Stops the uproot.source.futures.ResourceTrivialExecutor

submit

Inherited from uproot.source.futures.Executor.

ResourceTrivialExecutor.submit(future: ResourceFuture) ResourceFuture

Pass the task as a uproot.source.futures.ResourceFuture so that it will be executed with its self._resource.

shutdown

Inherited from uproot.source.futures.Executor.

ResourceTrivialExecutor.shutdown(wait: bool = True)

Stop the executor and free its resources.

closed

Inherited from uproot.source.futures.Executor.

ResourceTrivialExecutor.closed

True if the uproot.source.futures.ResourceTrivialExecutor has been stopped.