thenRunVoid<T> method

FutureVoidResult thenRunVoid<T>(
  1. NullaryFutureOr<T> function
)

Implementation

FutureVoidResult thenRunVoid<T>(NullaryFutureOr<T> function) =>
    Future.sync(() => this).then(
      (result) => result.isSuccess
          ? function.runVoidAsync()
          : result.asFailure.asVoid(),
    );