Sarama's producer might qualify as interesting.
https://pkg.go.dev/github.com/Shopify/sarama#example-AsyncProducer-Select
You're supposed to produce messages on a channel while simultaneously
listening for acks (optional) and errors (mandatory) in the same select
loop.
Regards,
Per Johansson
O
https://github.com/gaal/prolix-go/blob/master/prolix.go#L521 selects on
several channels. This was written as an exercise when I was learning the
language and may be buggy.
The application is an interactive console filter.
On Monday, April 3, 2023 at 6:44:43 AM UTC+3 Nigel Tao wrote:
> I'm wo