43 using UniquePtr = std::unique_ptr<AsyncTimeoutSet, Destructor>;
88 std::chrono::milliseconds
now)
const {
90 return std::chrono::milliseconds(0);
98 std::shared_ptr<folly::RequestContext>
context_;
129 std::chrono::milliseconds intervalMS,
130 std::chrono::milliseconds atMostEveryN =
131 std::chrono::milliseconds(0),
141 std::chrono::milliseconds intervalMS,
142 std::chrono::milliseconds atMostEveryN =
143 std::chrono::milliseconds(0));
AsyncTimeoutSet * timeoutSet_
std::chrono::milliseconds getInterval() const
void scheduleTimeout(Callback *callback)
AsyncTimeoutSet & operator=(AsyncTimeoutSet const &)=delete
friend class AsyncTimeoutSet
std::chrono::steady_clock::time_point now()
std::shared_ptr< folly::RequestContext > context_
virtual void timeoutExpired() noexcept=0
requires E e noexcept(noexcept(s.error(std::move(e))))
void fireAtMostEvery(const std::chrono::milliseconds &ms)
std::chrono::milliseconds expiration_
std::chrono::milliseconds atMostEveryN_
std::chrono::milliseconds getTimeRemaining(std::chrono::milliseconds now) const
void setScheduled(AsyncTimeoutSet *timeoutSet, Callback *prev)
~AsyncTimeoutSet() override
std::chrono::milliseconds millisecondsSinceEpoch()
TimeoutClock & timeoutClock_
std::unique_ptr< AsyncTimeoutSet, Destructor > UniquePtr
std::chrono::milliseconds interval_
const Callback * front() const