Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix zipPars doc #4842

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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