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.
