macro_rules! assert_pending {
($stream:expr) => { ... };
}Expand description
Assert that the stream is pending, i.e. calling poll_next returns
Poll::Pending.
Semantically equivalent to
assert!(matches!(stream.next().now_or_never(), None)), but produces nicer
error messages in case the stream is not pending.