Module: EventStoreSubscriptions::WaitForFinish

Included in:
Subscription, WatchDog
Defined in:
lib/event_store_subscriptions/wait_for_finish.rb

Instance Method Summary collapse

Instance Method Details

#wait_for_finishvoid

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