[−][src]Function tokio::time::advance
pub async fn advance(duration: Duration)
This is supported on crate features
time and test-util only.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.