Function quanta::set_recent

source ยท
pub fn set_recent(instant: Instant)
Expand description

Sets the global recent time.

While callers should typically prefer to use Upkeep to establish a background thread in order to drive the global recent time, this function allows callers to customize how the global recent time is updated. For example, programs using an asynchronous runtime may prefer to schedule a task that does the updating, avoiding an extra thread.