Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
328
void 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
WaitUntilConnectable
Function · 0.85
Calls
2
Sleep
Function · 0.85
Now
Function · 0.70
Tested by
no test coverage detected