8#include <userver/engine/deadline.hpp>
10USERVER_NAMESPACE_BEGIN
20void InterruptibleSleepUntil(Deadline);
21void SleepUntil(Deadline);
27template <
typename Rep,
typename Period>
29 engine::InterruptibleSleepUntil(Deadline::FromDuration(duration));
35template <
typename Clock,
typename Duration>
37 const std::chrono::time_point<Clock, Duration>& time_point) {
38 engine::InterruptibleSleepUntil(Deadline::FromTimePoint(time_point));
44template <
typename Rep,
typename Period>
45void SleepFor(
const std::chrono::duration<Rep, Period>& duration) {
46 engine::SleepUntil(Deadline::FromDuration(duration));
52template <
typename Clock,
typename Duration>
53void SleepUntil(
const std::chrono::time_point<Clock, Duration>& time_point) {
54 engine::SleepUntil(Deadline::FromTimePoint(time_point));