Method: GraphQL::Execution::Lazy::LazyMethodMap#initialize

Defined in:
lib/graphql/execution/lazy/lazy_method_map.rb

#initialize(use_concurrent: defined?(Concurrent::Map)) ⇒ LazyMethodMap

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 LazyMethodMap.



19
20
21
# File 'lib/graphql/execution/lazy/lazy_method_map.rb', line 19

def initialize(use_concurrent: defined?(Concurrent::Map))
  @storage = use_concurrent ? Concurrent::Map.new : ConcurrentishMap.new
end