Function futures_lite::stream::empty[][src]

pub fn empty<T>() -> Empty<T>

Creates an empty stream.

Examples

use futures_lite::stream::{self, StreamExt};

let mut s = stream::empty::<i32>();
assert_eq!(s.next().await, None);