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

Method DeferRelease

library/cpp/threading/future/async_semaphore.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70std::function<void (const TFuture<void>&)> TAsyncSemaphore::TAutoRelease::DeferRelease() {
71 return [s = std::move(this->Sem)](const TFuture<void>&) {
72 s->Release();
73 };
74}
75
76}

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 2

moveFunction · 0.50
ReleaseMethod · 0.45

Tested by

no test coverage detected