Sha256: 1511736dacaca6a1d7ba043f1f8e6708e15cb2cd20a20b9c2877ab5fd11f4955
Contents?: true
Size: 749 Bytes
Versions: 44
Compression:
Stored size: 749 Bytes
Contents
require 'concurrent/constants' module Concurrent # @!macro thread_local_var # @!macro internal_implementation_note # @!visibility private class AbstractThreadLocalVar # @!macro thread_local_var_method_initialize def initialize(default = nil) @default = default allocate_storage end # @!macro thread_local_var_method_get def value raise NotImplementedError end # @!macro thread_local_var_method_set def value=(value) raise NotImplementedError end # @!macro thread_local_var_method_bind def bind(value, &block) raise NotImplementedError end protected # @!visibility private def allocate_storage raise NotImplementedError end end end
Version data entries
44 entries across 42 versions & 15 rubygems