aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-17 08:15:44 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-17 09:00:07 +0300
commit784925324fd115c37bc98c5bbfe64c15f9966d74 (patch)
treef763f6eaacfcd4757d249977aaddfa4e9b2a355b /library/cpp/coroutine/engine
parentd6c75d9ec33559b29eb61a8f2e17cbca30fd5ae2 (diff)
downloadydb-784925324fd115c37bc98c5bbfe64c15f9966d74.tar.gz
Y_FAIL->Y_ABORT at '^li'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/coroutine/engine')
-rw-r--r--library/cpp/coroutine/engine/impl.cpp4
-rw-r--r--library/cpp/coroutine/engine/poller.cpp2
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");
}
}