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 4670388 commit cc85533Copy full SHA for cc85533
tests/timeout_future.rs
@@ -2,13 +2,13 @@
2
3
use std::time::Duration;
4
5
-use async_std::prelude::*;
6
use async_std::future;
+use async_std::prelude::*;
7
use async_std::task;
8
9
#[test]
10
fn should_timeout() {
11
- task::block_on(async {
+ task::block_on(async {
12
let fut = future::pending::<()>();
13
let dur = Duration::from_millis(100);
14
let res = fut.timeout(dur).await;
@@ -18,10 +18,10 @@ fn should_timeout() {
18
19
20
fn should_not_timeout() {
21
22
let fut = future::ready(0);
23
24
25
assert!(res.is_ok());
26
});
27
-}
+}
0 commit comments