constant

Function constant 

Source
pub fn constant<T: Element>(value: T) -> Rc<dyn Stream<T>>
Expand description

Returns a stream that ticks once with the specified value, on the first cycle.