Function async_callback

Source
pub fn async_callback<T, RT>(cb: T) -> Pin<Box<T>>
where T: Fn(&mut WebmachineContext, &WebmachineResource) -> Pin<Box<dyn Future<Output = RT> + Send>>,
Expand description

Wrap a callback in a structure that is safe to call between threads