Function tokio::time::resume

source ·
pub fn resume()
Available on crate features time and test-util only.
Expand description

Resumes time.

Clears the saved Instant::now() value. Subsequent calls to Instant::now() will return the value returned by the system call.

Panics

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