Skip to content

Conversation

tungli
Copy link
Contributor

@tungli tungli commented Feb 14, 2021

In the previous example one future always finished first (because of implementation details), possibly confusing users about what select does.

This commit resolves the issue by being explicit about one future finishing before the other.

Closes #2334

In the previous example one future always finished first (because of
implementation details), possibly confusing users about what `select`
does.

This commit resolves the issue by being explicit about one future
finishing before the other.
@tungli tungli mentioned this pull request Feb 14, 2021
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good to me aside from a few nits.

@taiki-e taiki-e added the docs label Feb 14, 2021
@taiki-e taiki-e merged commit 6acaa81 into rust-lang:master Feb 14, 2021
exrook pushed a commit to exrook/futures-rs that referenced this pull request Apr 5, 2021
In the previous example one future always finished first (because of
implementation details), possibly confusing users about what `select`
does.

This commit resolves the issue by being explicit about one future
finishing before the other.

Co-authored-by: tungli <[email protected]>
Co-authored-by: Taiki Endo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

select example in docs
2 participants