module Eco module API class Session class Batch module Launcher module StatusHandling private def tap_status(enviro:, queue:, method:, status: nil) status ||= Eco::API::Session::Batch::Status.new( enviro, queue: queue, method: method ) status.tap do yield(status) if block_given? end end end end end end end end