Module | SyncHash::Delegator |
In: |
lib/more/facets/synchash.rb
|
# File lib/more/facets/synchash.rb, line 119 def [](key) @sync.synchronize(::Sync::SH) { @delegate[key] } end
# File lib/more/facets/synchash.rb, line 123 def []=(key, value) @sync.synchronize(::Sync::EX) { @delegate[key] = value } end
# File lib/more/facets/synchash.rb, line 131 def clear @sync.synchronize(::Sync::EX) { @delegate.clear } end
# File lib/more/facets/synchash.rb, line 127 def delete(key) @sync.synchronize(::Sync::EX) { @delegate.delete(key) } end
# File lib/more/facets/synchash.rb, line 143 def keys @sync.synchronize(::Sync::SH) { @delegate.keys() } end