Fix all the linter problems for the `v0.16.0-beta.rc3`.
This abstracts out a common pattern where we wait for a send on a channel, and timeout otherwise.