class Concurrent::Map
def initialize(options = nil, &default_proc)
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: (?nil options, ) -> void
This signature was generated using 1 sample from 1 application.
-
default_proc(Proc) -- Optional block to compute the default value if the key is not set, like `Hash#default_proc` -
options(Hash, nil) -- options to set the :initial_capacity or :load_factor. Ignored on some Rubies.
def initialize(options = nil, &default_proc) if options.kind_of?(::Hash) validate_options_hash!(options) else options = nil end super(options) @default_proc = default_proc end