2 ms·
`select{..}` cases with multiple valid channel operations also select randomly. I really like it, it helps you discover (and fix) order-dependent logic WAY ear
by Groxx 4y ago
`select{..}` cases with multiple valid channel operations also select randomly.
I really like it, it helps you discover (and fix) order-dependent logic WAY earlier. Though I would really like some way to influence how long it blocks before selecting one (to simulate high load scenarios, and trigger more logical races).
- gabereiser 4y agoyou'll need an interrupt chan for that if you're in a select{..}