On Sun, 2011-02-27 at 14:07 -0800, Markus Roberts wrote: > B - > > > + def self.listeners_of(label) > > + synchronize { > > + @listeners_of[label] ||= @listeners.select do | > k,l| > > + l.listen_to?(label) > > + end > > + } > > + end > > > > > > Does this (due to memoization) omit listeners who are added > after the > > first publish? > > > Each time we enable/disable, we call rehash whose job is to > client > listeners_of, so we should be safe here. > > Ah yes, I see it now. Thanks. :)
And I should really not send e-mail late in the night as my sentence above doesn't mean anything, hopefully you got it :) -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.