Method: Tap::App#stop

Defined in:
lib/tap/app.rb

#stopObject

Signals a running app to stop executing tasks to the application stack by setting state to STOP. The task currently in the stack will continue to completion.

Does nothing unless state is RUN.



526
527
528
529
# File 'lib/tap/app.rb', line 526

def stop
  synchronize { @state = State::STOP if state == State::RUN }
  self
end