- std::future - cppreference. com
An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation The creator of the asynchronous operation can then use a variety of methods to query, wait for, or extract a value from the std::future
- std::shared_future - cppreference. com
The class template std::shared_future provides a mechanism to access the result of asynchronous operations, similar to std::future, except that multiple threads are allowed to wait for the same shared state Unlike std::future, which is only moveable (so only one instance can refer to any particular asynchronous result), std::shared_future is copyable and multiple shared future objects may
- std::promise - cppreference. com
The class template std::promise provides a facility to store a value or an exception that is later acquired asynchronously via a std::future object created by the std::promise object Note that the std::promise object is meant to be used only once Each promise is associated with a shared state, which contains some state information and a result which may be not yet evaluated, evaluated to a
- Standard library header lt;future gt; (C++11) - cppreference. com
async = * unspecified * , deferred = * unspecified * , * implementation-defined * }; enum class future_status { ready, timeout, deferred }; template<> struct is_error_code_enum <future_errc> : public true_type { }; error_code make_error_code (future_errc e) noexcept;
|