futures_lite::stream

Function 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);