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