From 1eeb1019e90a71b0ee39a806959d818a0f91a9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20P=C3=A9rez=20Garc=C3=ADa?= Date: Tue, 17 Dec 2019 23:05:06 -0600 Subject: [PATCH] Fixing example --- src/future/future/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/future/future/mod.rs b/src/future/future/mod.rs index bd97289..eea0ffb 100644 --- a/src/future/future/mod.rs +++ b/src/future/future/mod.rs @@ -364,7 +364,10 @@ extension_trait! { # Example ``` # async_std::task::block_on(async { - # + # + use async_std::prelude::*; + use async_std::future; + let fut = future::ready(0); let dur = Duration::from_millis(100); let res = fut.timeout(dur).await;