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

Implement SingleThreadedRingBuffer#toChunk #4951

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

adamgfraser
Copy link
Contributor

Implements toChunk operator on SingleThreadedRingBuffer to support using it as a sliding buffer. To support generic code I removed the constraint that A is a subtype of AnyRef.

@iravid
Copy link
Member

iravid commented Apr 12, 2021

Awesome! Can you merge this to series/2.x as well?

@adamgfraser
Copy link
Contributor Author

Will do!

@adamgfraser adamgfraser merged commit e5e7cc3 into zio:master Apr 12, 2021
@adamgfraser adamgfraser deleted the ringbuffer branch April 12, 2021 23:03
@jdegoes
Copy link
Member

jdegoes commented Apr 12, 2021

Great to have this. It's the "weakly consistent" guarantee we get from j.u.c collections.

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.

None yet

3 participants