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.  :)

-- M
-----------------------------------------------------------
When in trouble or in doubt, run in circles,
scream and shout. -- 1920's parody of the
maritime general prudential rule
------------------------------------------------------------

-- 
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.

Reply via email to