Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote a version of the article's code in Java and couldn't figure out why it was working until reading your example. I see now that the channel operations in Go must rendezvous which I assume matches Rust's Future behavior. Whereas, the Java CompletableFuture operations I was using to mimic the select aren't required to meet. Thanks for writing this.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: