Skip to main content

wrap_async_selection

Function wrap_async_selection 

Source
pub fn wrap_async_selection<F, Fut, R>(
    f: F,
) -> Arc<dyn Fn(&Value, &[String]) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send>> + Send + Sync> ⓘ
where F: Fn(&Value, &[String]) -> Fut + Send + Sync + 'static, Fut: Future<Output = R> + Send + 'static, R: IntoSelectionResult,
Expand description

Wrap an async target selector into a Selection.