Class Future

A remotely running computation

Declaration

class Future(WrappedKey)
source link

Documentation

A Future is a local proxy to a result running on a remote worker.  A user
manages future objects in the local Python process to determine what
happens in the larger cluster.

Attributes

Examples

Futures typically emerge from Client computations

>>> my_future = client.submit(add, 1, 2)  # doctest: +SKIP

We can track the progress and results of a future

>>> my_future  # doctest: +SKIP
<Future: status: finished, key: add-8f6e709446674bad78ea8aeecfee188e>

We can get the result or the exception and traceback from the future

>>> my_future.result()  # doctest: +SKIP

See also

Client:  Creates futures

Methods

Reexports