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.



409
410
411
412
413
# File 'lib/roby/execution_engine.rb', line 409

def initialize(waiting_work)
    super()

    @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.



407
408
409
# File 'lib/roby/execution_engine.rb', line 407

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.



415
416
417
418
419
420
421
422
423
424
425
426
# File 'lib/roby/execution_engine.rb', line 415

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