2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

Fixing tests

This commit is contained in:
Miguel Pérez García 2019-12-17 23:12:09 -06:00
parent 1eeb1019e9
commit 97b4901b75

View file

@ -364,10 +364,13 @@ extension_trait! {
# Example
```
# async_std::task::block_on(async {
#
#
use std::time::Duration;
use async_std::prelude::*;
use async_std::future;
use async_std::task;
let fut = future::ready(0);
let dur = Duration::from_millis(100);
let res = fut.timeout(dur).await;