MCPcopy Create free account
hub / github.com/catboost/catboost / Pause

Method Pause

library/cpp/coroutine/engine/impl.cpp:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void TContExecutor::Pause() {
365 if (auto cont = Running()) {
366 Paused_ = true;
367 ScheduleExecutionNow(cont);
368 cont->SwitchTo(&SchedContext_);
369 }
370}
371
372void TContExecutor::Exit(TCont* cont) noexcept {
373 ScheduleToDelete(cont);

Callers 1

TestPauseMethod · 0.80

Calls 1

SwitchToMethod · 0.45

Tested by 1

TestPauseMethod · 0.64