Method: Etcdv3#watch
- Defined in:
- lib/etcdv3.rb
#watch(key, range_end: nil, start_revision: nil, timeout: nil, &block) ⇒ Object
Watches for changes on a specified key range.
236 237 238 |
# File 'lib/etcdv3.rb', line 236 def watch(key, range_end: nil, start_revision: nil, timeout: nil, &block) @conn.handle(:watch, 'watch', [key, range_end, start_revision, block, timeout: timeout]) end |