Method: MessageBus::Implementation#unsubscribe

Defined in:
lib/message_bus.rb

#unsubscribe(channel = nil, &blk) ⇒ void

This method returns an undefined value.

Removes a subscription to a particular channel.

Parameters:

  • channel (String) (defaults to: nil)

    the name of the channel from which we should unsubscribe

  • blk (Proc, nil)

    the callback which should be removed. If nil, removes all.



454
455
456
# File 'lib/message_bus.rb', line 454

def unsubscribe(channel = nil, &blk)
  unsubscribe_impl(channel, nil, &blk)
end