uproot.source.futures.ResourceTrivialExecutor

Defined in uproot.source.futures on line 404.

Inheritance order:

  1. uproot.TrivialExecutor

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

closed

ResourceTrivialExecutor.closed

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

submit

Inherited from uproot.TrivialExecutor.

ResourceTrivialExecutor.submit(future)

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

shutdown

Inherited from uproot.TrivialExecutor.

ResourceTrivialExecutor.shutdown(wait=True)

Does nothing, since this object does not have threads to stop.