Skip to content

Commit c30adf5

Browse files
Didrik Nordströmcramertj
authored andcommitted
Document branch precedence of select!
1 parent d13c5c5 commit c30adf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

futures-util/src/async_await/select_mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use proc_macro_hack::proc_macro_hack;
77
macro_rules! document_select_macro {
88
($item:item) => {
99
/// Polls multiple futures and streams simultaneously, executing the branch
10-
/// for the future that finishes first. Futures passed to
10+
/// for the future that finishes first. If multiple futures are ready,
11+
/// one will be pseudo-randomly selected at runtime. Futures passed to
1112
/// `select!` must be `Unpin` and implement `FusedFuture`.
1213
/// Futures and streams which are not already fused can be fused using the
1314
/// `.fuse()` method. Note, though, that fusing a future or stream directly

0 commit comments

Comments
 (0)