Function runnable_async

Source
pub fn runnable_async<F, Input, Output, Fut>(
    func: F,
) -> Arc<dyn Runnable<Input, Output>>
where F: Fn(Input) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<Output>> + Send + 'static, Input: Send + Sync + 'static, Output: Send + Sync + 'static,
Expand description

Helper function to create an async runnable from a function