throttle

Used to throttle actions to happen no more often than a certain period. If last was less that span ago, return false. Otherwise, update last to the current time and return true.

bool
throttle
(
ref MonoTime last
,
Duration span
)

Meta