Method: AutoPilot::ResultsStatePoller#start
- Defined in:
- lib/auto_pilot/poller.rb
#start ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/auto_pilot/poller.rb', line 24 def start total_time = 0 while ResultsState.waiting? puts "still waiting: #{total_time} of #{self.timeout}" sleep self.interval total_time += self.interval break if total_time >= self.timeout || self.stop? end end |