class Redis

def unsubscribe(*channels)

Stop listening for messages posted to the given channels.
def unsubscribe(*channels)
  synchronize do |client|
    raise RuntimeError, "Can't unsubscribe if not subscribed." unless subscribed?
    client.unsubscribe(*channels)
  end
end