February 2019
Intermediate to advanced
592 pages
20h 37m
English
Checks if an std::shared_future instance is associated with an asynchronous result.
bool valid() const noexcept;
If the state associated with *this contains a deferred function, invokes the deferred function. Otherwise, waits until the asynchronous result associated with an instance of std::shared_future is ready.
void wait() const;