completion_future Class

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Represents a future corresponding to a C++ AMP asynchronous operation.

class completion_future;  

Public Constructors

NameDescription
completion_future::completion_future ConstructorInitializes a new instance of the completion_future class.
completion_future::~completion_future DestructorDestroys the completion_future object.

Public Methods

NameDescription
completion_future::get MethodWaits until the associated asynchronous operation completes.
completion_future::then MethodChains a callback function object to the completion_future object to be executed when the associated asynchronous operation finishes execution.
completion_future::to_task MethodReturns a task object corresponding to the associated asynchronous operation.
completion_future::valid MethodGets a Boolean value that indicates whether the object is associated with an asynchronous operation.
completion_future::wait MethodBlocks until the associated asynchronous operation completes.
completion_future::wait_for MethodBlocks until the associated asynchronous operation completes or the time specified by _Rel_time has elapsed.
completion_future::wait_until MethodBlocks until the associated asynchronous operation completes or until the current time exceeds the value specified by _Abs_time.

Public Operators

NameDescription
completion_future::operator std::shared_future<void> OperatorImplicitly converts the completion_future object to an std::shared_future object.
completion_future::operator= OperatorCopies the contents of the specified completion_future object into this one.

completion_future

Header: amprt.h

Namespace: concurrency

Concurrency Namespace (C++ AMP)

Show: