ZIORunExt<E, A> extension

on

Methods

run({Runtime? runtime, DeferredIO<Never>? interruptionSignal}) FutureOr<Exit<E, A>>
Runs this ZIO asynchronously or synchronously as a FutureOr, returning the Exit result.
runFuture({Runtime? runtime, DeferredIO<Never>? interruptionSignal}) Future<Exit<E, A>>
Runs this ZIO asynchronously and returns the Exit result as a Future.
runFutureOrThrow({Runtime? runtime, DeferredIO<Never>? interruptionSignal}) Future<A>
Runs this ZIO asynchronously and returns result as a Future. If the ZIO fails, the Future will throw.
runOrThrow({Runtime? runtime, DeferredIO<Never>? interruptionSignal}) FutureOr<A>
Runs this ZIO synchronously or asynchronously as a FutureOr, throwing if it fails.
runSync({Runtime? runtime, DeferredIO<Never>? interruptionSignal}) Exit<E, A>
Runs this ZIO synchronously and returns the result as an Exit.
runSyncOrThrow([Runtime? runtime]) → A
Runs this ZIO synchronously and throws if it fails.