10
10
//!
11
11
//! For operating on futures the following macros can be used:
12
12
//!
13
- //! | Name | Return signature | When does it return? |
14
- //! | --- | --- | --- |
15
- //! | `future::join` | `(T1, T2)` | Wait for all to complete
16
- //! | `future ::select` | `T` | Return on first value
13
+ //! | Name | Return signature | When does it return? |
14
+ //! | --- | --- | --- |
15
+ //! | [ `future::join!`] | `(T1, T2)` | Wait for all to complete
16
+ //! | [`Future ::select`] | `T` | Return on first value
17
17
//!
18
18
//! ## Fallible Futures Concurrency
19
19
//!
34
34
//! even on futures that return `Result`. Here is an overview of operations that
35
35
//! work on `Result`, and their respective semantics:
36
36
//!
37
- //! | Name | Return signature | When does it return? |
38
- //! | --- | --- | --- |
39
- //! | `future::join` | `(Result<T, E>, Result<T, E>)` | Wait for all to complete
40
- //! | `future::try_join` | `Result<(T1, T2), E>` | Return on first `Err`, wait for all to complete
41
- //! | `future::select` | `Result<T, E>` | Return on first value
42
- //! | `future::try_select` | `Result<T, E>` | Return on first `Ok`, reject on last Err
37
+ //! | Name | Return signature | When does it return? |
38
+ //! | --- | --- | --- |
39
+ //! | [`future::join!`] | `(Result<T, E>, Result<T, E>)` | Wait for all to complete
40
+ //! | [`future::try_join!`] | `Result<(T1, T2), E>` | Return on first `Err`, wait for all to complete
41
+ //! | [`Future::select`] | `Result<T, E>` | Return on first value
42
+ //! | [`Future::try_select`] | `Result<T, E>` | Return on first `Ok`, reject on last Err
43
+ //!
44
+ //! [`future::join!`]: macro.join.html
45
+ //! [`future::try_join!`]: macro.try_join.html
46
+ //! [`Future::select`]: trait.Future.html#method.select
47
+ //! [`Future::try_select`]: trait.Future.html#method.try_select
43
48
44
49
#[ doc( inline) ]
45
50
pub use async_macros:: { join, try_join} ;
@@ -57,9 +62,6 @@ mod ready;
57
62
mod timeout;
58
63
59
64
cfg_unstable ! {
60
- #[ doc( inline) ]
61
- pub use async_macros:: { select, try_select} ;
62
-
63
65
pub use into_future:: IntoFuture ;
64
66
mod into_future;
65
67
}
0 commit comments