8000 Implement ZStream#dropRight by luis3m · Pull Request #5407 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement ZStream#dropRight #5407

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

Merged
merged 3 commits into from
Aug 16, 2021
Merged

Implement ZStream#dropRight #5407

merged 3 commits into from
Aug 16, 2021

Conversation

luis3m
Copy link
Contributor
@luis3m luis3m commented Aug 16, 2021

No description provided.

@luis3m luis3m requested a review from iravid as a code owner August 16, 2021 16:58
iravid
iravid previously approved these changes Aug 16, 2021
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.

Great addition. Thanks @luis3m!

adamgfraser
adamgfraser previously approved these changes Aug 16, 2021
@@ -28,6 +28,12 @@ private[zio] final class SingleThreadedRingBuffer[A](capacity: Int) {
increment()
}

def putAndGet(value: A): Option[A] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels a little bit uncompositional but can address in a follow up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@adamgfraser any suggestions? I can address this in this PR if you like.

Copy link
Contributor

Choose a reason for hiding this comment

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

@luis3m Basically just separate putting and getting into their own operators instead of having one that does both.

@adamgfraser
Copy link
Contributor

@luis3m Can you format?

@luis3m
Copy link
Contributor Author
luis3m commented Aug 16, 2021

@adamgfraser done, also removed putAndGet.

Copy link
Contributor
@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

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

Nice!

@adamgfraser adamgfraser merged commit 58ce461 into zio:series/2.x Aug 16, 2021
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.

3 participants
0