std::future_status(3)
π NAME π
okay so bestie, welcome to the std::future_status(3) page from the C++ Standard Library π β and the name is std::future_status - std::future_status β¨ yes, thatβs the whole NAME situation, and weβre rolling with it.
This is your little enum bestie for doing a vibe check on a future π
β¨ Synopsis β¨
Defined in header <future> π«Ά
enum class future_status {
ready,
timeout, (since C++11)
deferred
};
It specifies the state of a future as returned by wait_for and wait_until functions of std::future and std::shared_future π
π Constants
deferredβ the shared state contains a deferred function, so the result will be computed only when explicitly requested πreadyβ the shared state is ready βtimeoutβ the shared state did not become ready before specified timeout duration has passed β°
π See also π
wait_forβ waits for the result, returns if it is not available for the specified timeout duration (public member function ofstd::future<T>) π«Άwait_forβ waits for the result, returns if it is not available for the specified timeout duration (public member function ofstd::shared_future<T>) πwait_untilβ waits for the result, returns if it is not available until specified time point has been reached (public member function ofstd::future<T>) β³wait_untilβ waits for the result, returns if it is not available until specified time point has been reached (public member function ofstd::shared_future<T>) πΈ
xoxo, your Unix bestie π
β source: http://cppreference.com, version/date: 2024.06.10, page: std::future_status(3) β¨π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms