Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@saeltz
Copy link
Contributor

@saeltz saeltz commented Sep 18, 2019

This fixes #1567

saeltz added 11 commits August 22, 2019 10:55
# 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
@iravid
Copy link
Member

iravid commented Sep 18, 2019

Needs a rebase on master

@saeltz
Copy link
Contributor Author

saeltz commented Sep 18, 2019

Finally, ready for your review, @iravid.

Copy link
Contributor

@vasilmkd vasilmkd left a 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](
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @saeltz, and thanks for reviewing @vasilmkd!

@iravid iravid merged commit 2a88927 into zio:master Sep 18, 2019
fsvehla pushed a commit to fsvehla/zio that referenced this pull request Sep 21, 2019
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename ZIO.aggregateWithin to ZIO.aggregateWithinEither and add a simpler aggregateWithin

3 participants