async fn call_api<'a, K, F, U, T, E>(api: &'a Api<K>, f: F) -> Result<T, E>
where F: Fn(&'a Api<K>) -> U + 'a, U: Future<Output = Result<T, E>>, E: Display,
Expand description

Helper for calling a kube API with (limited) retry.