userver: userver/engine/future_status.hpp Source File
Loading...
Searching...
No Matches
future_status.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/engine/future_status.hpp
4/// @brief @copybrief engine::FutureStatus
5
6USERVER_NAMESPACE_BEGIN
7
8namespace engine {
9
10/// std::future state extended with "cancelled" state
11enum class FutureStatus {
12 kReady, ///< the future is ready
13 kTimeout, ///< the wait operation timed out
14 kCancelled ///< the wait operation was interrupted by task cancellation
15};
16
17} // namespace engine
18
19USERVER_NAMESPACE_END