Method: Aerospike::Atomic#update
- Defined in:
- lib/aerospike/atomic/atomic.rb
permalink #update(&block) ⇒ Object
[View source]
29 30 31 32 33 |
# File 'lib/aerospike/atomic/atomic.rb', line 29 def update(&block) @mutex.synchronize do @value = block.call(@value) end end |