Function webmachine::callback
source · [−]pub fn callback<T, RT>(cb: &T) -> Callback<'_, RT> where
T: Fn(&mut Context, &Resource<'_>) -> Pin<Box<dyn Future<Output = RT> + Send>> + Send + Sync,
Expand description
Wrap a callback in a structure that is safe to call between threads