Skip to main content

async_compose

Function async_compose 

Source
pub fn async_compose<F, G, FutF, FutG, A, B, C>(
    f: F,
    g: G,
) -> impl Fn(A) -> Pin<Box<dyn Future<Output = C>>>
where F: Fn(B) -> FutF + Copy + 'static, G: Fn(A) -> FutG + Copy + 'static, FutF: Future<Output = C> + 'static, FutG: Future<Output = B> + 'static, A: 'static,