Good point. This may be specific to my system. Done() is intended to be
used by the system controller goroutine when doing a system-wide shutdown.
Assumption is that the controller will be first sending shutdown signals to
the goroutines that might call Alert(). Don't know if that is sufficient.
On Wednesday, November 18, 2015 at 5:27:31 AM UTC-8, Giulio Iotti wrote:

If you have many routines on the same Blocker, one will eventually call
Done(). After that, you need to collect the result from the others that
might call Alert() or they will never return the channel send and waste
resources (routine leak).

If you are sure Alert is never called after Done, you don't have this

Giulio Iotti
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 6 | next ›
Discussion Overview
groupgolang-nuts @
postedNov 17, '15 at 8:43p
activeNov 18, '15 at 8:00p



site design / logo © 2022 Grokbase