Method: Wisper::GlobalListeners#unsubscribe

Defined in:
lib/wisper/global_listeners.rb

#unsubscribe(*listeners) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/wisper/global_listeners.rb', line 25

def unsubscribe(*listeners)
  with_mutex do
    @registrations.delete_if do |registration|
      listeners.include?(registration.listener)
    end
  end
  self
end