-
Couldn't load subscription status.
- Fork 1.4k
Rename ZIO.aggregateWithin to ZIO.aggregateWithinEither and add a simpler aggregateWithin #1700
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
Conversation
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
# Conflicts: # streams-tests/jvm/src/test/scala/zio/stream/StreamSpec.scala
# Conflicts: # streams-tests/jvm/src/test/scala/zio/stream/StreamSpec.scala
|
Needs a rebase on master |
|
Finally, ready for your review, @iravid. |
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.
Hopefully, you don't mind me hijacking the review. 😄
| * pulls. | ||
| */ | ||
| final def aggregateWithin[R1 <: R, E1 >: E, A1 >: A, B, C]( | ||
| final def aggregateWithinEither[R1 <: R, E1 >: E, A1 >: A, B, C]( |
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.
We will need to add some more documentation to this method, to highlight the difference compared to the new aggregateWithin which currently doesn't have a scaladoc.
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.
I appreciate your feedback! I've added ScalaDoc for both methods in a4b8851.
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.
@iravid Should we open an issue maybe for the hackathon, to add annotated documentation like this?
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.
See #413 where I started adding ScalaDoc to some files. It's a good first issue for a hackathon.
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.
…pler aggregateWithin (zio#1700) * Added ScalaDoc to Ref * Add ScalaDoc to RefM * Add ScalaDoc to Queue * Add ScalaDoc to Fiber * zio#1567 Rename ZStream.aggregateWithin to aggregateWithinEither * Format * Fix StreamSpec::aggregateWithinEitherLeftoverHandling & aggregateWithin * Fix StreamSpec::aggregateWithinEitherLeftoverHandling * Add ScalaDoc to ZStream::aggregateWithin(Either)
This fixes #1567