pub fn wrap_selection<R>(
f: impl Fn(&Value, &[String]) -> R + Send + Sync + 'static,
) -> Arc<dyn Fn(&Value, &[String]) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send>> + Sync + Send> ⓘwhere
R: IntoSelectionResult,Expand description
Wrap a synchronous target selector into a Selection. The closure may
return Vec<String> or Result<Vec<String>> (see
IntoSelectionResult).