by lukaslalinsky · 2mo ago · 0 comments
In Rust when receivers all drop, the producer will error instead of blocking, so Rust is better in this aspect.
I don't feel this is hacky or even a work around. Just different promises on what goroutines are vs threads/concurrency/processes in other languages.
Exit and panics are promised at the process level in Go.
Isn’t this also true of threads? I know you can usually cancel them from a thread handle, but that kills the thread ~immediately without cleaning anything up, right? Presumably you pretty much always want cooperative cancellation?
Starting with what they knew to work and iterating from there is wise.