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