-
Notifications
You must be signed in to change notification settings - Fork 628
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
Rewrite join! and try_join! as procedural macros #1783
Conversation
9fe1edd
to
d6be294
Compare
@@ -27,13 +27,15 @@ cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"] | |||
sink = ["futures-sink-preview"] | |||
io = ["std", "futures-io-preview", "memchr"] | |||
channel = ["std", "futures-channel-preview"] | |||
join-macro = ["async-await", "futures-join-macro-preview", "proc-macro-hack", "proc-macro-nested"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For almost the same reason as select!
, this is optional in futures_util
(see #1701).
d6be294
to
78665e8
Compare
Wow, this is awesome! I have so much appreciation for your eagerness and quick work on all of this. Thanks, @taiki-e! |
78665e8
to
e5245e6
Compare
/// `join!` polls both futures concurrently and therefore is more efficent. | ||
/// | ||
/// This macro is only usable inside of async functions, closures, and blocks. | ||
/// It is also gated behind the `async-await` feature of this library, which is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// It is also gated behind the `async-await` feature of this library, which is | |
/// It is also gated behind the `join-macro` feature of this library, which is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it depends on what "this library" is referring to...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. So, I would like to remove these descriptions and change them to use doc(cfg(feature = ".."))
instead in the near future.
Closes #1782
r? @cramertj