Run the supplied block as a work unit, reloading code as needed
# File activesupport/lib/active_support/reloader.rb, line 71
def self.wrap(**kwargs)
return yield if active?
executor.wrap(**kwargs) do
instance = run!
begin
yield
ensure
instance.complete!
end
end
end