[−][src]Function spin_future::until_some
pub fn until_some<T, F: FnMut() -> Option<T> + Unpin>(
f: F
) -> impl Future<Output = T>
Convert a function that returns Option<T>
into a valid but inefficient future. The future will
resolve only when the function returns Some
.