Module: StepperMotor::Journey::Recovery
- Extended by:
- ActiveSupport::Concern
- Included in:
- StepperMotor::Journey
- Defined in:
- lib/stepper_motor/journey/recovery.rb
Instance Method Summary collapse
Instance Method Details
#recover! ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/stepper_motor/journey/recovery.rb', line 19 def recover! case when_stuck when :reattempt with_lock do return unless performing? ready! schedule! end else with_lock do return unless performing? canceled! end end end |