Method: Redis#punsubscribe
- Defined in:
- lib/redis.rb
#punsubscribe(*channels) ⇒ Object
Stop listening for messages posted to channels matching the given patterns.
1033 1034 1035 1036 1037 1038 |
# File 'lib/redis.rb', line 1033 def punsubscribe(*channels) synchronize do raise RuntimeError, "Can't unsubscribe if not subscribed." unless subscribed? @client.punsubscribe(*channels) end end |