File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ pub trait FutureExt: Future {
31
31
/// # Example
32
32
///
33
33
/// ```
34
+ /// # #[cfg(miri)]fn main() {}
35
+ /// # #[cfg(not(miri))]
36
+ /// # fn main() {
34
37
/// use async_io::Timer;
35
38
/// use futures_concurrency::prelude::*;
36
39
/// use futures_lite::future::block_on;
@@ -46,6 +49,7 @@ pub trait FutureExt: Future {
46
49
///
47
50
/// assert!(now.elapsed() >= duration);
48
51
/// });
52
+ /// # }
49
53
/// ```
50
54
fn wait_until < D > ( self , deadline : D ) -> WaitUntil < Self , D :: IntoFuture >
51
55
where
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ pub trait StreamExt: Stream {
46
46
///
47
47
/// # Example
48
48
/// ```
49
+ /// # #[cfg(miri)] fn main() {}
50
+ /// # #[cfg(not(miri))]
51
+ /// # fn main() {
49
52
/// use async_io::Timer;
50
53
/// use futures_concurrency::prelude::*;
51
54
/// use futures_lite::{future::block_on, stream};
@@ -63,6 +66,7 @@ pub trait StreamExt: Stream {
63
66
///
64
67
/// assert!(now.elapsed() >= duration);
65
68
/// });
69
+ /// # }
66
70
/// ```
67
71
fn wait_until < D > ( self , deadline : D ) -> WaitUntil < Self , D :: IntoFuture >
68
72
where
Original file line number Diff line number Diff line change 51
51
52
52
match this. state {
53
53
State :: Timer => match this. deadline . poll ( cx) {
54
- Poll :: Pending => return Poll :: Pending ,
54
+ Poll :: Pending => Poll :: Pending ,
55
55
Poll :: Ready ( _) => {
56
56
* this. state = State :: Streaming ;
57
57
this. stream . poll_next ( cx)
You can’t perform that action at this time.
0 commit comments