README.md in redis-4.2.2 vs README.md in redis-4.2.3
- old
+ new
@@ -263,9 +263,10 @@
All timeout values are specified in seconds.
When using pub/sub, you can subscribe to a channel using a timeout as well:
```ruby
+redis = Redis.new(reconnect_attempts: 0)
redis.subscribe_with_timeout(5, "news") do |on|
on.message do |channel, message|
# ...
end
end