Skip to content

Glossary: Rust in Practice

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.

Where the book teaches it

Related terms

tokio::select!