2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-06 12:45:32 +00:00

Update spawn.rs

shortens count down
This commit is contained in:
tronta 2020-07-08 21:16:20 +02:00 committed by GitHub
parent ff76bdb4ab
commit 0162ba4ec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ use crate::task::{Builder, JoinHandle};
/// println!("Start");
/// task::spawn(clock());
///
/// for i in (0..100).rev() {
/// for i in (0..=10).rev() {
/// println!("Countdown {}", i);
/// task::sleep(Duration::from_secs(2)).await;
/// }