Function sync_to_async_with_args

Source
pub async fn sync_to_async_with_args<F, T, Args>(
    func: F,
    args: Args,
) -> Result<T, AsyncSyncError>
where F: Fn(Args) -> T + Send + 'static, Args: Send + 'static, T: Send + 'static,