Skip to main content

empty

Function empty 

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

Creates a stream that immediately completes without emitting any values.

ยงNote

This is an alias for futures::stream::empty. Prefer using the built-in directly:

use futures::stream;
let s: futures::stream::Empty<i32> = stream::empty();

Creates a stream which contains no elements.

The returned stream will always return Ready(None) when polled.