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

Method Cancel

library/cpp/coroutine/engine/impl.cpp:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void TCont::Cancel() noexcept {
102 if (Cancelled()) {
103 return;
104 }
105
106 Cancelled_ = true;
107
108 if (!IAmRunning()) {
109 ReSchedule();
110 }
111}
112
113void TCont::Cancel(THolder<std::exception> exception) noexcept {
114 if (!Cancelled()) {

Callers 7

AbortMethod · 0.45
DoAuxFunction · 0.45
DoMainFunction · 0.45
JoinMethod · 0.45
AbortMethod · 0.45
StopMethod · 0.45

Calls 2

moveFunction · 0.50
CancelFunction · 0.50

Tested by 1