[poll] Your opinions about unbuffered channel #25
frostyplanet
started this conversation in
Polls
Replies: 1 comment 4 replies
-
|
I use zero-bounded channel as a reusable one-shot channel in my project. Let's say we have to tasks: A and B. B wants to do a "remote" function call, which is implemented by sending a message to A using a bounded channel, and getting something back from A using an one-shot channel. But we have to re-create the channel when getting things from A. If we have a zero-bounded channel, we can use it to get things from A, since B is always blocked on recv() when A is sending. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Unbuffered channel is popular in Golang developers, but I want to know how much do you need it in Rust?
Since the limitation of cancellation in Rust Future, there are difficulties in implementing reliable one, as discussed in #11
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions