Performs a side-effect with the contained value if this is an Ok.
Result<T> ifOk(@noFutures void Function(Result<T> self, Ok<T> ok) noFutures);