Function leptos::create_signal_from_stream
source · pub fn create_signal_from_stream<T>(
cx: Scope,
stream: impl Stream<Item = T> + Unpin + 'static
) -> ReadSignal<Option<T>>
Expand description
Creates a signal that always contains the most recent value emitted by a
Stream.
If the stream has not yet emitted a value since the signal was created, the signal’s
value will be None
.
Note: If used on the server side during server rendering, this will return None
immediately and not begin driving the stream.