Skip to main content

single_sync_value_from

Function single_sync_value_from 

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

Read exactly one DATA value from a synchronously completing source.

The helper returns SyncValueFromError::Pending if the node does not complete during the synchronous subscribe/current-drain window. It is not a Promise/Future analogue and owns no runtime.