Crystal Medium · Lesson 10

Concurrency patterns: select, timeouts and Mutex

Wait on several channels with select, add timeouts and non-blocking checks, protect shared state with Mutex, and run a worker pool.

Lessons · Crystal Medium · Lesson 10 of 10

Concurrency patterns: select, timeouts and Mutex

Wait on several channels with select, add timeouts and non-blocking checks, protect shared state with Mutex, and run a worker pool.

Illustration for Crystal
Wait on several channels with select, add timeouts and non-blocking checks, protect shared state with Mutex, and run a worker pool.