Function tokio::time::resume

source ·
pub fn resume()
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.