Function node

Source
pub fn node<Closure, Context, Action, Output, Fut>(
    closure: Closure,
) -> ClosureNode<Closure, Context, Action, Output>
where Context: Clone + Send + Sync + 'static, Action: ActionType + Send + Sync + 'static, Output: Send + Sync + 'static, Closure: Fn(Context) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<(Context, NodeOutcome<Output, Action>), FloxideError>> + Send + 'static,
Expand description

Create a node from a closure