2 ms·
Thanks. The part about starting the consumer in a goroutine actually made more sense as a solution than either of the given solutions. I guess I completely for
by xmprt 6y ago
Thanks. The part about starting the consumer in a goroutine actually made more sense as a solution than either of the given solutions.
I guess I completely forgot how channels work and didn't realize that until there's a reader, the channel will block (which makes perfect sense in hindsight).