pub fn boxed_future<T, F, Fut, E>(
f: F,
) -> impl FnOnce(T) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send>>
Expand description
Boxes an async closure to handle lifetime issues
This function takes a closure that returns a Future and wraps it in a
Pin<Box