userver: userver/engine/future_status.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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