pub fn retry<F, R>(n: u32, f: F) -> Rwhere F: FnMut() -> Option<R>,
Helper to retry a function n times.
n
The function should return Some when it is ready.
Some