# frozen_string_literal: true module Wayfarer GC = Struct.new(:job) do def run return unless task.counter.decrement <= 0 task.barrier.reset! task.counter.reset! job.class.run_after_batch_callbacks end private def task job.arguments.first end end end