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:
parent
ff76bdb4ab
commit
0162ba4ec6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
/// }
|
||||
|
|
Loading…
Reference in a new issue