ifOk abstract method

Result<T> ifOk(
  1. @noFutures void noFutures(
    1. Result<T> self,
    2. Ok<T> ok
    )
)

Performs a side-effect with the contained value if this is an Ok.

Implementation

Result<T> ifOk(@noFutures void Function(Result<T> self, Ok<T> ok) noFutures);