I was surprised looking through old code that I didn't have much in the way of "interesting, non-trivial" selects - in every case where I remember doing something interesting through a select statement, later versions had moved to less interesting selects, more interesting messages from channels in the select arms. Non-deterministic selection between a flat list of edges is very clear to reason about. Channels of (some carefully composed type of functions and channels and tokens etc.) are possible, so messages can be pretty interesting.
Generally I think each example could be motivated as a scheduling gadget ... I briefly looked at some job queueing libraries (temporal.io, asynq) to see if they had "interesting" selects, they also looked like they were going more towards interesting messages. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/91008b35-cdfa-4de5-8ea2-0f536d33363bn%40googlegroups.com.