Peter Ertl
the best thing I came up with is this - maybe this is worth considering adding to kotlin's 'ReceiveChannel' impl since I can imagine the problem is quite common: