Sha256: 0682f07f656c04946b92d131c51c2d7d944bd789d5b0862c9447ca9993ecd305

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module OperatorRecordable
  class ThreadStore
    def initialize
      warn "DEPRECATION WARNING: `:thread_store` is deprecated. It will be removed in v2.0"
    end

    def [](key)
      ::Thread.current[key]
    end

    def []=(key, value)
      ::Thread.current[key] = value
    end
  end

  Store.register(:thread_store, ThreadStore)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
operator_recordable-1.4.0 lib/operator_recordable/store/thread_store.rb