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

Function SleepUntil

util/datetime/base.cpp:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void SleepUntil(TInstant instant) {
329 TInstant now = TInstant::Now();
330 if (instant <= now) {
331 return;
332 }
333 TDuration duration = instant - now;
334 Sleep(duration);
335}

Callers 1

WaitUntilConnectableFunction · 0.85

Calls 2

SleepFunction · 0.85
NowFunction · 0.70

Tested by

no test coverage detected