Channel Directionality in Go

An exploration of channel direction in Go, and a perspective on its implications for the type system.

April 25, 2024 · Sam Burns

Closing Go Worker Pools

An approach we might take to closing worker pools using standard lib’s sync.WaitGroup to keep track of how many of the workers are still running.

April 21, 2024 · Sam Burns

Go Worker Pools

The worker pool pattern involves creating a specific number of workers (goroutines), each responsible for executing tasks. These workers listen for tasks on a common channel. Any free worker can pick up a task and execute it.

April 20, 2024 · Sam Burns