wait<E> method

Effect<E, L, R> wait<E>()

Implementation

Effect<E, L, R> wait<E>() => Effect.from(
      (ctx) async => switch (_state) {
        None() => await _completer.future,
        Some(value: final value) => value,
      },
    );