folly::HHWheelTimerBase::scheduleTimeoutFn

Schedule a callable to be invoked after the specified timeout interval.

Synopsis

Declared in <folly/io/async/HHWheelTimer.h>

template<class F>
void
scheduleTimeoutFn(
    F fn,
    Duration timeout);

Template Parameters

NameDescription
FThe callable type to invoke.

Parameters

NameDescription
fnThe callable invoked when the timeout fires.
timeoutThe delay before the callable is invoked.