←back to thread

159 points mpweiher | 1 comments | | HN request time: 0.347s | source
Show context
anarki8 ◴[] No.43672225[source]
I find myself using channels in async Rust more than any other sync primitives. No more deadlock headaches. Easy to combine multiple channels in one state-keeping loop using combinators. And the dead goroutines problem described in the article doesn't exist in Rust.
replies(5): >>43672313 #>>43672959 #>>43674608 #>>43674871 #>>43675417 #
1. surajrmal ◴[] No.43675417[source]
The fact all goroutines are detached is the real problem imo. I find you can encounter many of the same problems in rust with overuse of detached tasks.