Michael Friend
02/24/2020, 6:33 PMEvan R.
02/25/2020, 3:52 PMselect
on a channel and a timeout. Here’s a sample usage in my code: https://github.com/emanguy/GitlabTimeTracker/blob/master/src/main/kotlin/controller/TimeRecordingController.kt#L99
Basically if the channel receives a value first the select immediately exits and returns the value from the channel, but if the timeout occurs first I just exit with the default null