-
Couldn't load subscription status.
- Fork 1.4k
Add ZIO#tapSome #4676
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
Add ZIO#tapSome #4676
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kubukoz Looks good! Not sure why the rest of the CI checks aren't running. Can you try merging upstream changes in case there were any changes to CI settings that aren't incorporated in your version.
|
Rebased to latest master, let's see ;) |
|
Apparently... doesn't work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
| final def tapSome[R1 <: R, E1 >: E](f: PartialFunction[A, ZIO[R1, E1, Any]]): ZIO[R1, E1, A] = | ||
| self.tap(f.applyOrElse(_, (_: A) => ZIO.unit)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nitpick, I'd use ZIO.unitFn.
|
@kubukoz Thank you for your contribution and sorry for the delay on getting this merged! |
No description provided.