Sha256: 27a029034cfb81fb65ef49febd0530209ffc85280743ec95846f1263f03a6278
Contents?: true
Size: 468 Bytes
Versions: 79
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true require "monitor" module ActiveSupport module Concurrency # A monitor that will permit dependency loading while blocked waiting for # the lock. class LoadInterlockAwareMonitor < Monitor # Enters an exclusive section, but allows dependency loading while blocked def mon_enter mon_try_enter || ActiveSupport::Dependencies.interlock.permit_concurrent_loads { super } end end end end
Version data entries
79 entries across 71 versions & 11 rubygems