class Riffer::Rig::Terminal::JobCounter
Public Class Methods
(footer: Riffer::Rig::Terminal::Frame) → void
Source
# File lib/riffer/rig/terminal/job_counter.rb, line 9 def initialize(footer:) @footer = footer @mutex = Mutex.new end
@rbs footer: Riffer::Rig::Terminal::Frame @rbs return: void
Public Instance Methods
(Riffer::Rig::Runtime runtime) → void
Source
# File lib/riffer/rig/terminal/job_counter.rb, line 16 def watch(runtime) # Nothing announces a job starting; the tool result of the call that # started it is the first message recorded after it. runtime.on_message { refresh(runtime) } runtime.on_job_exit { refresh(runtime) } refresh(runtime) end
@rbs runtime: Riffer::Rig::Runtime @rbs return: void