module Concurrent::Concern::Dereferenceable
def set_deref_options(opts = {})
(**opts)
-
:copy_on_deref
(String
) -- call the given `Proc` passing -
:freeze_on_deref
(String
) -- call `#freeze` before returning the data -
:dup_on_deref
(String
) -- call `#dup` before returning the data
Parameters:
-
opts
(Hash
) -- the options defining dereference behavior.
Other tags:
- Note: - Most classes that include this module will call `#set_deref_options`
def set_deref_options(opts = {}) synchronize{ ns_set_deref_options(opts) } end