Function anchor_chain::parallel_node::to_boxed_future
source · pub fn to_boxed_future<F, I, O>(
f: F
) -> Box<dyn Fn(I) -> BoxFuture<'static, Result<O, AnchorChainError>> + Send + Sync>Expand description
Converts a function into a BoxFuture that can be used in a ParallelNode.
This function takes a function that processes input and returns a Result and
converts it into a boxed future.