mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-23 08:46:46 +00:00
Fixing tests
This commit is contained in:
parent
1eeb1019e9
commit
97b4901b75
1 changed files with 5 additions and 2 deletions
|
@ -365,8 +365,11 @@ extension_trait! {
|
||||||
```
|
```
|
||||||
# async_std::task::block_on(async {
|
# async_std::task::block_on(async {
|
||||||
#
|
#
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
use async_std::prelude::*;
|
use async_std::prelude::*;
|
||||||
use async_std::future;
|
use async_std::future;
|
||||||
|
use async_std::task;
|
||||||
|
|
||||||
let fut = future::ready(0);
|
let fut = future::ready(0);
|
||||||
let dur = Duration::from_millis(100);
|
let dur = Duration::from_millis(100);
|
||||||
|
|
Loading…
Reference in a new issue