enum class
<future>

std::future_status

enum class future_status;
Return value for timed future operations
This enum class type defines the possible return values of the wait_for and wait_until member functions of future and shared_future.

future_status labelint valuedescription
future_status::ready0The function returned because the shared state was ready.
future_status::timeout1The function returned because the specified time was exhausted.
future_status::deferred2The function returned because the shared state contains a deferred function (see std::async).

See also