Function futures_lite::stream::empty

source ·
pub fn empty<T>() -> Empty<T>
Expand description

Creates an empty stream.

Examples

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

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