Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

future Class

Describes an asynchronous return object.

template<class Ty>
class future;

Each standard asynchronous provider returns an object whose type is an instantiation of this template. A future object provides the only access to the asynchronous provider that it is associated with. If you need multiple asynchronous return objects that are associated with the same asynchronous provider, copy the future object to a shared_future object.

Name

Description

future::future Constructor

Constructs a future object.

Name

Description

future::get Method

Retrieves the result that is stored in the associated asynchronous state.

future::share Method

Converts the object to a shared_future.

future::valid Method

Specifies whether the object is not empty.

future::wait Method

Blocks the current thread until the associated asynchronous state is ready.

future::wait_for Method

Blocks until the associated asynchronous state is ready or until the specified time has elapsed.

future::wait_until Method

Blocks until the associated asynchronous state is ready or until a specified point in time.

Name

Description

future::operator= Operator

Transfers the associated asynchronous state from a specified object.

Header: future

Namespace: std

Show:
© 2015 Microsoft