Skip to main content

node_fn

Function node_fn 

Source
pub fn node_fn<S, F, Fut>(f: F) -> impl Node<S>
where S: State, F: Fn(S, &Config) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<S>> + Send + 'static,
Expand description

Helper to create a simple node from an async function