Defined in uproot.source.futures on line 84.
- class uproot.source.futures.Future(task, args)
task (function) – The function to evaluate.
args (tuple) – Arguments for the function.
Like Python 3
concurrent.futures.Futureexcept that it has only the subset of the interface Uproot needs and is available in Python 2.
The uproot.source.futures.ResourceFuture extends this class.
Waits until the task completes (with a
timeout) and returns its result.
If the task raises an exception in its background thread, this function raises that exception on the thread on which it is called.