Hacker News new | ask | show | jobs
by Groxx 1404 days 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).

1 comments

you'll need an interrupt chan for that if you're in a select{..}