Functions

Run a closure until the future it returns resolves to an Ok value.