Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

future: provide join! macro #2158

Merged
merged 3 commits into from
Jan 23, 2020
Merged

future: provide join! macro #2158

merged 3 commits into from
Jan 23, 2020

Conversation

carllerche
Copy link
Member

Provides a join! macro that supports concurrently driving multiple
futures on the same task and await the completion of all futures.

Similar to #2152, this macro is implemented as a declarative macro and
recurses only once per branch.

Provides a `join!` macro that supports concurrently driving multiple
futures on the same task and await the completion of all futures.
tokio/src/macros/join.rs Outdated Show resolved Hide resolved
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

looks great! i had a couple of docs nits.

tokio/src/future/mod.rs Show resolved Hide resolved
tokio/src/macros/join.rs Show resolved Hide resolved
@carllerche carllerche merged commit 7079bcd into master Jan 23, 2020
@carllerche carllerche deleted the join-macro branch January 26, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants