tokio::time::timeout
Also written: timeout
Wraps a future with a time limit, returning `Ok(value)` if it finishes in time and `Err` otherwise, dropping the future.
Also written: timeout
Wraps a future with a time limit, returning `Ok(value)` if it finishes in time and `Err` otherwise, dropping the future.