runFutureOrThrow method

Future<A> runFutureOrThrow({
  1. Runtime? runtime,
  2. DeferredIO<Never>? interruptionSignal,
})

Runs this ZIO asynchronously and returns result as a Future. If the ZIO fails, the Future will throw.

Implementation

Future<A> runFutureOrThrow({
  Runtime? runtime,
  DeferredIO<Never>? interruptionSignal,
}) =>
    (runtime ?? Runtime.defaultRuntime).runFutureOrThrow(
      this,
      interruptionSignal: interruptionSignal,
    );