# This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems # typed: strict # # If you would like to make changes to this file, great! Please create the gem's shim here: # # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/thread_safe/all/thread_safe.rbi # # thread_safe-0.3.6 module ThreadSafe end module Threadsafe def self.const_missing(name); end end class SynchronizedDelegator < SimpleDelegator def initialize(obj); end def method_missing(method, *args, &block); end def setup; end def teardown; end end class ThreadSafe::NonConcurrentCacheBackend def [](key); end def []=(key, value); end def _get(key); end def _set(key, value); end def clear; end def compute(key); end def compute_if_absent(key); end def compute_if_present(key); end def delete(key); end def delete_pair(key, value); end def dupped_backend; end def each_pair; end def get_and_set(key, value); end def get_or_default(key, default_value); end def initialize(options = nil); end def initialize_copy(other); end def key?(key); end def merge_pair(key, value); end def pair?(key, expected_value); end def replace_if_exists(key, new_value); end def replace_pair(key, old_value, new_value); end def size; end def store_computed_value(key, new_value); end def value?(value); end end class ThreadSafe::MriCacheBackend < ThreadSafe::NonConcurrentCacheBackend def []=(key, value); end def clear; end def compute(key); end def compute_if_absent(key); end def compute_if_present(key); end def delete(key); end def delete_pair(key, value); end def get_and_set(key, value); end def merge_pair(key, value); end def replace_if_exists(key, new_value); end def replace_pair(key, old_value, new_value); end end class ThreadSafe::Cache < ThreadSafe::MriCacheBackend def [](key); end def each_key; end def each_value; end def empty?; end def fetch(key, default_value = nil); end def fetch_or_store(key, default_value = nil); end def get(key); end def initialize(options = nil, &block); end def initialize_copy(other); end def key(value); end def keys; end def marshal_dump; end def marshal_load(hash); end def populate_from(hash); end def put(key, value); end def put_if_absent(key, value); end def raise_fetch_no_key; end def validate_options_hash!(options); end def values; end end