zipParWith<B, C> method

ZIO<R, E, C> zipParWith<B, C>(
  1. ZIO<R, E, B> zio,
  2. C resolve(
    1. A a,
    2. B b
    )
)

Combine the result of this ZIO with the result of the given ZIO, using the given function to determine the result.

The ZIO's are run in parallel.

Implementation

ZIO<R, E, C> zipParWith<B, C>(
  ZIO<R, E, B> zio,
  C Function(A a, B b) resolve,
) =>
    ZIO.collectPar([this, zio]).map((a) => resolve(a[0] as A, a[1] as B));