Method: GraphQL::Execution::Lazy::LazyMethodMap::ConcurrentishMap#initialize
- Defined in:
- lib/graphql/execution/lazy/lazy_method_map.rb
#initialize ⇒ ConcurrentishMap
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ConcurrentishMap.
63 64 65 66 67 68 |
# File 'lib/graphql/execution/lazy/lazy_method_map.rb', line 63 def initialize @semaphore = Mutex.new # Access to this hash must always be managed by the mutex # since it may be modified at runtime @storage = {} end |