Documentation Home >> Headers >> <future> Header >> std::shared_future >> std::shared_future<>::is_ready Member function

Check if the asynchronous result associated with an instance of std::shared_future is ready.

bool is_ready() const;

Preconditions:

this->valid() would return true.

Returns:

true if the asynchronous result associated with *this is ready, false otherwise.

Throws:

Nothing.

Header

#include <future>

See Also