After 6 years, last night I resumed writing about concurrency.
Here is how to implement a chan with unlimited buffer in Go:
https://blogtitle.github.io/go-advanced-concurrency-patterns-part-4-unlimited-buffer-channels/
Here is how to implement a chan with unlimited buffer in Go:
https://blogtitle.github.io/go-advanced-concurrency-patterns-part-4-unlimited-buffer-channels/
Comments
i'm happy that this led to you writing a new article on your site 😁
I thought about this but I didn't want to overcomplicate the code for a small performance increase.
Then your code might look like this: https://gist.github.com/rogpeppe/ce9945c8bd696c59e5d208bbe717648e