Module: EventStoreSubscriptions::WaitForFinish
- Included in:
- Subscription, WatchDog
- Defined in:
- lib/event_store_subscriptions/wait_for_finish.rb
Instance Method Summary collapse
-
#wait_for_finish ⇒ void
Waits until state switches from :running to any other state.
Instance Method Details
#wait_for_finish ⇒ void
This method returns an undefined value.
Waits until state switches from :running to any other state.
7 8 9 10 11 12 13 |
# File 'lib/event_store_subscriptions/wait_for_finish.rb', line 7 def wait_for_finish loop do break if state.stopped? || state.dead? sleep 0.1 end end |