Knaph

Concurrency52 of 62

Select with Default

The starter code may or may not have put a value on the buffered channel ch. Write a select with one case receiving from ch (print "received:", v) and a default case (print "no value ready") so the check never blocks.

Sign in to try this exercise.