Exception: Roby::ExecutionEngine::JoinAllWaitingWorkTimeout Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/roby/execution_engine.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(waiting_work) ⇒ JoinAllWaitingWorkTimeout

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of JoinAllWaitingWorkTimeout.



370
371
372
# File 'lib/roby/execution_engine.rb', line 370

def initialize(waiting_work)
    @waiting_work = waiting_work.dup
end

Instance Attribute Details

#waiting_workObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



369
370
371
# File 'lib/roby/execution_engine.rb', line 369

def waiting_work
  @waiting_work
end

Instance Method Details

#pretty_print(pp) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



374
375
376
377
378
379
380
381
382
383
384
385
# File 'lib/roby/execution_engine.rb', line 374

def pretty_print(pp)
    pp.text "timed out in #join_all_waiting_work, #{waiting_work.size} promises waiting"
    waiting_work.each do |w|
        pp.breakable
        pp.nest(2) do
            if w.respond_to?(:state)
                pp.text "[state=#{w.state}] "
            end
            w.pretty_print(pp)
        end
    end
end