template< class T > class future;
(1) (concurrency TS)template< class T > class future<T&>;
(2) (concurrency TS)template<> class future<void>;
(3) (concurrency TS)The class template std::experimental::future
extends std::future with the following operations:
future<future<T>>
;is_ready
to query whether the associated shared state is ready; andthen
to attach a continuation to the future.However, there is no interoperation between std::experimental::future
and std::future.
Note that share()
returns a std::experimental::shared_future<T>. The behavior is otherwise identical.
std::future<T>
) [edit] transfers the shared state from *this to a shared_future and returns it
std::future<T>
) [edit] Getting the result returns the result
std::future<T>
) [edit] State checks if the future has a shared state
std::future<T>
) [edit] waits for the result to become available
std::future<T>
) [edit] waits for the result, returns if it is not available for the specified timeout duration
std::future<T>
) [edit] waits for the result, returns if it is not available until specified time point has been reached
std::future<T>
) [edit] [edit] Example [edit] See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4