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

channel_unordered adds to full channels #534

Closed
ExpandingMan opened this issue Sep 9, 2022 · 1 comment
Closed

channel_unordered adds to full channels #534

ExpandingMan opened this issue Sep 9, 2022 · 1 comment

Comments

@ExpandingMan
Copy link

channel_unordered is somehow ignoring channel size limits. You get non-sensical results like

Channel{Any}(2) (6 items available)

This is easy to reproduce with e.g. channel_unordered(Map(f), 1:10, size=3). The created Channel object indeed seems to have the correct size it's just storing more output than it should be able to.

@ExpandingMan
Copy link
Author

Sorry this is not a bug, put! can't sync across threads... it's very weird that Base doesn't throw an error when you try to do this with channels but I guess it doesn't have any way of knowing what's going on.

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