class ActiveSupport::ExecutionWrapper
def self.run!(reset: false)
after the work has been performed.
Returns an instance, whose +complete!+ method *must* be invoked
Run this execution.
def self.run!(reset: false) if reset lost_instance = IsolatedExecutionState.delete(active_key) lost_instance&.complete! else return Null if active? end new.tap do |instance| success = nil begin instance.run! success = true ensure instance.complete! unless success end end end