runFutureOrThrow<E, A> method
Implementation
Future<A> runFutureOrThrow<E, A>(
EIO<E, A> zio, {
DeferredIO<Never>? interruptionSignal,
}) {
assert(!_disposed, 'Runtime has been disposed');
return Future.value(run(zio, interruptionSignal: interruptionSignal))
.then((ea) => ea.match(
(e) => throw e,
identity,
));
}