Skip to main content

async_wrap

Function async_wrap 

Source
pub fn async_wrap(
    f: impl for<'a, 'b> Fn(&'a mut NgynContext<'_>) -> Pin<Box<dyn Future<Output = Box<dyn ToBytes>> + Send + 'a>> + Send + Sync + 'static,
) -> Box<dyn for<'a, 'b> Fn(&'a mut NgynContext<'_>) -> Pin<Box<dyn Future<Output = Box<dyn ToBytes>> + Send + 'a>> + Send + Sync>