We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e36f4 commit 1a14d50Copy full SHA for 1a14d50
examples/timeout.rs
@@ -52,7 +52,7 @@ fn main() -> io::Result<()> {
52
io::Result::Ok(false)
53
};
54
55
- // Run a future that times out after 5 seconds.
+ // Run a future that times out after 1 second.
56
let timeout_s = 1;
57
let timeout = async move {
58
Timer::after(std::time::Duration::from_secs(timeout_s)).await;
0 commit comments