On Thursday, November 30, 2017 at 12:32:10 AM UTC-5, Dave Cheney wrote: > > But I'm wondering if others have found themselves in the same position, > and if so, what were your solutions? >
I'm not sure if this approach satisfies all of your requirements, but if you want those registering to be notified of any changes that occur after their call to Register returns, and you don't mind having to "close" the condition value, take a look at this Playground sample <https://play.golang.org/p/f1S9O2NLdd>. The implementation is more complex, but the caller juggles less state. https://play.golang.org/p/f1S9O2NLdd -- Steven E. Harris -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.