alwaysIgnore<X> method

ZIO<R, E, A> alwaysIgnore<X>(
  1. ZIO<R, E, X> zio
)

Always run the given ZIO after this one, regardless of success or failure.

The result of this ZIO is ignored.

Implementation

ZIO<R, E, A> alwaysIgnore<X>(ZIO<R, E, X> zio) => ZIO.from(
      (ctx) => race(ctx.signal.awaitIO.lift<R, E>()).unsafeRun(ctx).then(
            (exit) =>
                zio.unsafeRun(ctx.withoutSignal).then((_) => _.call(exit)),
          ),
    );