class Redis

def punsubscribe(*channels)

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