Sha256: cc6882927a92de32d1301c6ff61aec4cc97de0bd6aed48d56a02d65c13a056ab
Contents?: true
Size: 299 Bytes
Versions: 14
Compression:
Stored size: 299 Bytes
Contents
require 'set' class TraceTree module Warm Warmed = Set.new Lock = Mutex.new class << self def check_and_warm key Lock.synchronize do warmed = Warmed.include? key Warmed << key unless warmed warmed end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems