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

Cannot resize to buffer capacity of None #1

Closed
eapache opened this issue Nov 15, 2013 · 0 comments
Closed

Cannot resize to buffer capacity of None #1

eapache opened this issue Nov 15, 2013 · 0 comments

Comments

@eapache
Copy link
Owner

eapache commented Nov 15, 2013

Because there's a goroutine in the middle, the current ResizableChannel can't be resized to a capacity of None (for fully unbuffered blocking mode). The best it can do is a buffer of size 1.

I played around with a structure that returns different backing channels from In() and Out() depending on the current buffer size, but it turned out to be hard (potentially impossible) to preserve the order of elements coming out of the output channel(s) correctly.

It may be that this problem is just impossible, but leaving the ticket for documentation and in case anyone has a brilliant idea in this regard.

@eapache eapache added bug and removed bug labels Feb 27, 2014
@eapache eapache closed this as completed Feb 21, 2024
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

No branches or pull requests

1 participant