Method: Redis::Commands::Pubsub#subscribe_with_timeout
- Defined in:
- lib/redis/commands/pubsub.rb
#subscribe_with_timeout(timeout, *channels, &block) ⇒ Object
Listen for messages published to the given channels. Throw a timeout error if there is no messages for a timeout period.
22 23 24 |
# File 'lib/redis/commands/pubsub.rb', line 22 def subscribe_with_timeout(timeout, *channels, &block) _subscription(:subscribe_with_timeout, timeout, channels, block) end |