We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df6353e commit c29a73aCopy full SHA for c29a73a
futures-util/src/async_await/poll.rs
@@ -9,6 +9,10 @@ use futures_core::task::{Context, Poll};
9
/// This macro is only usable inside of `async` functions, closures, and blocks.
10
/// It is also gated behind the `async-await` feature of this library, which is
11
/// activated by default.
12
+///
13
+/// If you need the result of polling a [`Stream`](crate::stream::Stream),
14
+/// you can use this macro with the [`next`](crate::stream::StreamExt::next) method:
15
+/// `poll!(stream.next())`.
16
#[macro_export]
17
macro_rules! poll {
18
($x:expr $(,)?) => {
0 commit comments