broker_tokio::time

Function advance

Source
pub async fn advance(duration: Duration)
Available on crate feature time only.
Expand description

Advance time

Increments the saved Instant::now() value by duration. Subsequent calls to Instant::now() will return the result of the increment.

ยงPanics

Panics if time is not frozen or if called from outside of the Tokio runtime.