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

Add zero capacity bounded channel #58

Open
bnyu opened this issue May 17, 2023 · 3 comments
Open

Add zero capacity bounded channel #58

bnyu opened this issue May 17, 2023 · 3 comments

Comments

@bnyu
Copy link

bnyu commented May 17, 2023

A difference between zero capacity and one capacity bounded channel is that call try_send() return OK only when there is already receiver wait on it. And this is useful is somecase.

Golang and crossbeam-channel both have zero capacity bounded channel, maybe we should support it.

@notgull
Copy link
Member

notgull commented May 17, 2023

Adding a rendezvous channel inside of the current implementation would add some level of complexity to the implementation. I'd like to avoid that if necessary.

I'd be happy to add rendezvous channel functionality to this crate, but I'd have to see the implementation first.

@al8n
Copy link

al8n commented Oct 21, 2023

Hi @notgull, anyone works on this? If not, I would like to give it a try.

@notgull
Copy link
Member

notgull commented Oct 21, 2023

Hi @notgull, anyone works on this? If not, I would like to give it a try.

Sure, go ahead!

@al8n al8n mentioned this issue Nov 4, 2023
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants