Skip to content

Commit

Permalink
doc: add futures::select macro to tokio::select alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
Ddystopia committed Jan 28, 2025
1 parent 03eed09 commit ba71953
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tokio/src/macros/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,13 +512,14 @@ macro_rules! doc {
///
/// If you need to wait for the first completion among several asynchronous tasks,
/// ecosystem utilities such as
/// [`futures`](https://docs.rs/futures/latest/futures/) or
/// [`futures`](https://docs.rs/futures/latest/futures/),
/// [`futures-lite`](https://docs.rs/futures-lite/latest/futures_lite/) or
/// [`futures-concurrency`](https://docs.rs/futures-concurrency/latest/futures_concurrency/)
/// provide streamlined syntax for racing futures:
///
/// - [`futures_concurrency::future::Race`](https://docs.rs/futures-concurrency/latest/futures_concurrency/future/trait.Race.html)
/// - [`futures::stream::select_all` (for streams)](https://docs.rs/futures/latest/futures/stream/select_all/index.html)
/// - [`futures::select!`](https://docs.rs/futures/latest/futures/macro.select.html)
/// - [`futures::stream::select_all`](https://docs.rs/futures/latest/futures/stream/select_all/index.html) (for streams)
/// - [`futures_lite::future::or`](https://docs.rs/futures-lite/latest/futures_lite/future/fn.or.html)
/// - [`futures_lite::future::race`](https://docs.rs/futures-lite/latest/futures_lite/future/fn.race.html)
///
Expand Down

0 comments on commit ba71953

Please sign in to comment.