We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cf9125 commit ef8a441Copy full SHA for ef8a441
Cargo.toml
@@ -22,6 +22,6 @@ futures = "0.3.1"
22
23
[features]
24
wasm-bindgen = [
25
- "gloo-timers",
26
- "send_wrapper"
+ "gloo-timers",
+ "send_wrapper"
27
]
src/lib.rs
@@ -2,15 +2,13 @@
2
//!
3
//! # Examples
4
5
-//! ```no_run
6
-//! # #[async_std::main]
7
-//! # async fn main() {
+//! ```
8
//! use std::time::Duration;
9
//! use futures_timer::Delay;
+//! use futures::executor::block_on;
10
11
-//! let now = Delay::new(Duration::from_secs(3)).await;
+//! let now = block_on(Delay::new(Duration::from_secs(3)));
12
//! println!("waited for 3 secs");
13
-//! # }
14
//! ```
15
16
#![deny(missing_docs)]
0 commit comments