pub trait SignalStream<T> {
    // Required method
    fn to_stream(&self) -> Pin<Box<dyn Stream<Item = T>>>;
}
Expand description

This trait allows converting a signal into a async Stream.

Required Methods§

source

fn to_stream(&self) -> Pin<Box<dyn Stream<Item = T>>>

Generates a Stream that emits the new value of the signal whenever it changes.

§Panics

Panics if you try to access a signal that is owned by a reactive node that has been disposed.

Implementors§