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::ready 0The function returned because the shared state was ready.
future_status::timeout 1The function returned because the specified time was exhausted.
future_status::deferred 2The function returned because the shared state contains a deferred function (see std::async ).

See also

future::wait_for
Wait for ready during time span (public member function)
future::wait_until
Wait for ready until time point (public member function)
shared_future::wait_for
Wait for ready during time span (public member function)
shared_future::wait_until
Wait for ready until time point (public member function)

AltStyle によって変換されたページ (->オリジナル) /