Skip to main content

first_sync_value_from

Function first_sync_value_from 

Source
pub fn first_sync_value_from<T>(node: &Node<T>) -> Result<T, SyncValueFromError>
where T: Clone + 'static,
Expand description

Read the first DATA value delivered during the synchronous subscribe window.

This is a host-boundary convenience for already-synchronous sources such as of and from_iter. It does not wait, spawn, poll, or install a hidden scheduler: if the node remains live without a DATA value, it returns SyncValueFromError::Pending after immediately unsubscribing.