module Eco module API class Session class Batch module Launcher module StatusHandling private def tap_status(enviro:, queue:, method:, status: nil, &block) status ||= Eco::API::Session::Batch::Status.new( enviro, queue: queue, method: method ) status.tap(&block) end end end end end end end