withRuntime method

ZIO<R, E, A> withRuntime(
  1. Runtime runtime
)

Replace the Runtime in this ZIO with the given Runtime.

Implementation

ZIO<R, E, A> withRuntime(Runtime runtime) =>
    ZIO.from((ctx) => unsafeRun(ctx.withRuntime(runtime)));