### Navigation

- index
- next |
- previous |
- Pyro 4.23 documentation »
- Pyro4 library API »

# `Pyro4.futures` — asynchronous calls

Support for Futures (asynchronously executed callables). If you’re using Python 3.2 or newer, also see http://docs.python.org/3/library/concurrent.futures.html#future-objects

class `Pyro4.futures.``Future`(callable)

  Holds a callable that will be executed asynchronously and provide its result value some time in the future. This is a more general implementation than the AsyncRemoteMethod, which only works with Pyro proxies (and provides a bit different syntax).

  `then`(call, *args, **kwargs)

    Add a callable to the call chain, to be invoked when the results become available. The result of the current call will be used as the first argument for the next call. Optional extra arguments can be provided in args and kwargs.

class `Pyro4.futures.``FutureResult`

  The result object for asynchronous calls.

  `ready`

    Boolean that contains the readiness of the async result

  `then`(call, *args, **kwargs)

    Add a callable to the call chain, to be invoked when the results become available. The result of the current call will be used as the first argument for the next call. Optional extra arguments can be provided in args and kwargs.

  `value`

    The result value of the call. Reading it will block if not available yet.

  `wait`(timeout=None)

    Wait for the result to become available, with optional timeout (in seconds). Returns True if the result is ready, or False if it still isn’t ready.

### Navigation

- index
- next |
- previous |
- Pyro 4.23 documentation »
- Pyro4 library API »