Skip to content

Commit f04b6f6

Browse files
Change module level docs for future to refer to join and try_join functions instead of macros
1 parent b142824 commit f04b6f6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/future/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
//! operations converts multiple future into a single future that returns the
99
//! first output.
1010
//!
11-
//! For operating on futures the following macros can be used:
11+
//! For operating on futures the following functions can be used:
1212
//!
1313
//! | Name | Return signature | When does it return? |
1414
//! | --- | --- | --- |
15-
//! | [`future::join!`] | `(T1, T2)` | Wait for all to complete
15+
//! | [`Future::join`] | `(T1, T2)` | Wait for all to complete
1616
//! | [`Future::race`] | `T` | Return on first value
1717
//!
1818
//! ## Fallible Futures Concurrency
1919
//!
2020
//! For operating on futures that return `Result` additional `try_` variants of
21-
//! the macros mentioned before can be used. These macros are aware of `Result`,
21+
//! the functions mentioned before can be used. These functions are aware of `Result`,
2222
//! and will behave slightly differently from their base variants.
2323
//!
2424
//! In the case of `try_join`, if any of the futures returns `Err` all
@@ -30,19 +30,19 @@
3030
//! means `try_race` will keep going until any one of the futures returns
3131
//! `Ok`, or _all_ futures have returned `Err`.
3232
//!
33-
//! However sometimes it can be useful to use the base variants of the macros
33+
//! However sometimes it can be useful to use the base variants of the functions
3434
//! even on futures that return `Result`. Here is an overview of operations that
3535
//! work on `Result`, and their respective semantics:
3636
//!
3737
//! | Name | Return signature | When does it return? |
3838
//! | --- | --- | --- |
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
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
4141
//! | [`Future::race`] | `Result<T, E>` | Return on first value
4242
//! | [`Future::try_race`] | `Result<T, E>` | Return on first `Ok`, reject on last Err
4343
//!
44-
//! [`future::join!`]: macro.join.html
45-
//! [`future::try_join!`]: macro.try_join.html
44+
//! [`Future::join`]: trait.Future.html#method.join
45+
//! [`Future::try_join`]: trait.Future.html#method.try_join
4646
//! [`Future::race`]: trait.Future.html#method.race
4747
//! [`Future::try_race`]: trait.Future.html#method.try_race
4848

0 commit comments

Comments
 (0)