[−][src]Function async_std::stream::empty
pub fn empty<T>() -> Empty<T>
Creates a stream that doesn't yield any items.
Examples
use async_std::prelude::*; use async_std::stream; let mut s = stream::empty::<i32>(); assert_eq!(s.next().await, None);