> Once you use async/await it's hard to go back, since the code is as easy to write as synchronous code.
Wait until you try goroutines :)
Wait until you try goroutines :)
Here's a 40min talk explaining how Go's scheduler works:
Could even use the return `await Task.WhenAny` to tell you the specific one to check. Shouldn't be a very hard construct to make; to make it more select like.
It has the benefit that any number of tasks can be selected, but the efficiency is not good as hard-coded select blocks.
But it looks C# Task.WhenAny has much less use case variants than Go select block.
The holy grail is cooperative multitasking and always-on, opt-out async [0] if you ask me.
Such as?