mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-23 16:56:46 +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");
|
/// println!("Start");
|
||||||
/// task::spawn(clock());
|
/// task::spawn(clock());
|
||||||
///
|
///
|
||||||
/// for i in (0..100).rev() {
|
/// for i in (0..=10).rev() {
|
||||||
/// println!("Countdown {}", i);
|
/// println!("Countdown {}", i);
|
||||||
/// task::sleep(Duration::from_secs(2)).await;
|
/// task::sleep(Duration::from_secs(2)).await;
|
||||||
/// }
|
/// }
|
||||||
|
|
Loading…
Reference in a new issue