aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-04-15 19:08:59 +0300
committerarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-04-15 19:24:02 +0300
commitbbefdb67b85b033ec67fef5f5a6ecbc0fc09e53c (patch)
tree20c871260580a2ef0daf84e555940c865d547ee3
parent3c122523a62d9e7e6a1ce8e0fcd1282b373aca34 (diff)
downloadydb-bbefdb67b85b033ec67fef5f5a6ecbc0fc09e53c.tar.gz
Cosmetics in coroutine
2236dee26f1852bf0fc3f65cb60730e6c5bafe7a
-rw-r--r--yt/yt/core/concurrency/coroutine.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/yt/yt/core/concurrency/coroutine.h b/yt/yt/core/concurrency/coroutine.h
index 275870456b..ab827b2266 100644
--- a/yt/yt/core/concurrency/coroutine.h
+++ b/yt/yt/core/concurrency/coroutine.h
@@ -20,12 +20,6 @@ namespace NYT::NConcurrency {
namespace NDetail {
-DEFINE_ENUM(ECoroState,
- ((Running) (0))
- ((Abandoned) (1))
- ((Completed) (2))
-);
-
////////////////////////////////////////////////////////////////////////////////
class TCoroutineBase
@@ -46,6 +40,12 @@ protected:
void Suspend();
private:
+ enum class ECoroState {
+ Running,
+ Abandoned,
+ Completed,
+ };
+
std::shared_ptr<TExecutionStack> CoroutineStack_;
TExceptionSafeContext CallerContext_;