Skip to content

Commit

Permalink
fix zipPars doc (#4842)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazchimo committed Mar 26, 2021
1 parent efc9f3c commit 38bed4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/shared/src/main/scala/zio/ZIO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sealed trait ZIO[-R, +E, +A] extends Serializable with ZIOPlatformSpecific[R, E,
/**
* Returns an effect that executes both this effect and the specified effect,
* in parallel, returning result of provided effect. If either side fails,
* then the other side will be interrupted, interrupted the result.
* then the other side will be interrupted.
*/
final def &>[R1 <: R, E1 >: E, B](that: ZIO[R1, E1, B]): ZIO[R1, E1, B] =
self.zipWithPar(that)((_, b) => b)
Expand Down Expand Up @@ -89,15 +89,15 @@ sealed trait ZIO[-R, +E, +A] extends Serializable with ZIOPlatformSpecific[R, E,
/**
* Returns an effect that executes both this effect and the specified effect,
* in parallel, this effect result returned. If either side fails,
* then the other side will be interrupted, interrupted the result.
* then the other side will be interrupted.
*/
final def <&[R1 <: R, E1 >: E, B](that: ZIO[R1, E1, B]): ZIO[R1, E1, A] =
self.zipWithPar(that)((a, _) => a)

/**
* Returns an effect that executes both this effect and the specified effect,
* in parallel, combining their results into a tuple. If either side fails,
* then the other side will be interrupted, interrupted the result.
* then the other side will be interrupted.
*/
final def <&>[R1 <: R, E1 >: E, B](that: ZIO[R1, E1, B]): ZIO[R1, E1, (A, B)] =
self.zipWithPar(that)((a, b) => (a, b))
Expand Down

0 comments on commit 38bed4a

Please sign in to comment.