Thank you Tamás, I like the concept of blocking on select in the handler until a worker closes the channel. I don't know why but every time I use a WaitGroup I have the impression that the same thing can be done better.
I'll try to implement it with the context library first as I'm very intrigued about it. Cheers, Pablo On Friday, December 9, 2016 at 1:33:14 AM UTC+11, Tamás Gulácsi wrote: > > I think this is not bad. > But you can try context.Context, or simply pass in a new chan, which will > be closed by the worker - so you can select, timeout on it. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
