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

Allow Enumerable(Channel) parameter for Channel.send_first, .receive_first #12101

Merged

Conversation

carlhoerberg
Copy link
Contributor

Before this change a Deque for instance couldn't be passed. Only .map is used, no need to limit it further afaik.

Before this change an `Deque` for instance couldn't be passed.
@straight-shoota
Copy link
Member

FTR: The type restrictions were originally introduced with the methods in #1365) by @jhass. That was a long time ago.

@straight-shoota straight-shoota changed the title Allow any Enumerable(Channel) to send_/receive_first Allow Enumerable(Channel) parameter for Channel.send_first, .receive_first Jun 8, 2022
@straight-shoota straight-shoota added this to the 1.5.0 milestone Jun 8, 2022
@straight-shoota straight-shoota merged commit afcccea into crystal-lang:master Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants