enum class future_status;
enum class type defines the possible return values of the wait_for and wait_until member functions of future and shared_future.| future_status label | int value | description |
|---|---|---|
| future_status::ready | 0 | The function returned because the shared state was ready. |
| future_status::timeout | 1 | The function returned because the specified time was exhausted. |
| future_status::deferred | 2 | The function returned because the shared state contains a deferred function (see std::async). |