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 67ace5b commit aa7d2bcCopy full SHA for aa7d2bc
src/lib.rs
@@ -2,13 +2,16 @@
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;
10
//! use futures::executor::block_on;
11
-//! let now = block_on(Delay::new(Duration::from_secs(3)));
12
+//! let now = Delay::new(Duration::from_secs(3)).await;
13
//! println!("waited for 3 secs");
14
+//! # }
15
//! ```
16
17
#![deny(missing_docs)]
0 commit comments