1.. currentmodule:: torch.futures 2 3.. _futures-docs: 4 5torch.futures 6============= 7 8This package provides a :class:`~torch.futures.Future` type that encapsulates 9an asynchronous execution and a set of utility functions to simplify operations 10on :class:`~torch.futures.Future` objects. Currently, the 11:class:`~torch.futures.Future` type is primarily used by the 12:ref:`distributed-rpc-framework`. 13 14.. automodule:: torch.futures 15 16.. autoclass:: Future 17 :inherited-members: 18 19.. autofunction:: collect_all 20.. autofunction:: wait_all 21