toFutureOrElseDo method

Future<Option<T>> toFutureOrElseDo(
  1. Future<Option<T>> futureF()
)

Implementation

Future<Option<T>> toFutureOrElseDo(Future<Option<T>> Function() futureF) =>
    fold(() => futureF(), (some) => toFuture());