module Bootsnap::LoadPathCache::CoreExt::ActiveSupport

def self.allow_bootsnap_retry(allowed)

def self.allow_bootsnap_retry(allowed)
  prev = Thread.current[:without_bootsnap_retry] || false
  Thread.current[:without_bootsnap_retry] = !allowed
  yield
ensure
  Thread.current[:without_bootsnap_retry] = prev
end

def self.without_bootsnap_cache

def self.without_bootsnap_cache
  prev = Thread.current[:without_bootsnap_cache] || false
  Thread.current[:without_bootsnap_cache] = true
  yield
ensure
  Thread.current[:without_bootsnap_cache] = prev
end