Function futures_lite::stream::pending
source · [−]pub fn pending<T>() -> Pending<T>
Expand description
Creates a stream that is always pending.
Examples
use futures_lite::stream::{self, StreamExt};
let mut s = stream::pending::<i32>();
s.next().await;
unreachable!();