Method: Roby::EventGenerator#cancel
- Defined in:
- lib/roby/event.rb
#cancel(reason = nil) ⇒ Object
Call this method in the #calling hook to cancel calling the event command. This raises an EventCanceled exception with reason for message
596 597 598 |
# File 'lib/roby/event.rb', line 596 def cancel(reason = nil) raise EventCanceled.new(self), (reason || "event canceled") end |