diff options
Diffstat (limited to 'library/cpp/coroutine')
-rw-r--r-- | library/cpp/coroutine/engine/impl.cpp | 4 | ||||
-rw-r--r-- | library/cpp/coroutine/engine/poller.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/coroutine/engine/impl.cpp b/library/cpp/coroutine/engine/impl.cpp index 5f2e4a53f6..c999fe0e10 100644 --- a/library/cpp/coroutine/engine/impl.cpp +++ b/library/cpp/coroutine/engine/impl.cpp @@ -357,7 +357,7 @@ void TContExecutor::RunScheduler() noexcept { } } catch (...) { TBackTrace::FromCurrentException().PrintTo(Cerr); - Y_FAIL("Uncaught exception in the scheduler: %s", CurrentExceptionMessage().c_str()); + Y_ABORT("Uncaught exception in the scheduler: %s", CurrentExceptionMessage().c_str()); } } @@ -372,7 +372,7 @@ void TContExecutor::Pause() { void TContExecutor::Exit(TCont* cont) noexcept { ScheduleToDelete(cont); cont->SwitchTo(&SchedContext_); - Y_FAIL("can not return from exit"); + Y_ABORT("can not return from exit"); } TInstant TContExecutor::Now() { diff --git a/library/cpp/coroutine/engine/poller.cpp b/library/cpp/coroutine/engine/poller.cpp index bcd31d209c..4669828a07 100644 --- a/library/cpp/coroutine/engine/poller.cpp +++ b/library/cpp/coroutine/engine/poller.cpp @@ -355,6 +355,6 @@ THolder<IPollerFace> IPollerFace::Construct(EContPoller poller) { return nullptr; #endif default: - Y_FAIL("bad poller type"); + Y_ABORT("bad poller type"); } } |