Method: Slave#shutdown
- Defined in:
- ext/slave.rb
#shutdown(opts = {}) ⇒ Object
2 3 4 5 6 7 |
# File 'ext/slave.rb', line 2 def shutdown opts = {} quiet = getopts(opts)['quiet'] raise "already shutdown" if @shutdown unless quiet begin; @lifeline.cut; rescue Exception; end @shutdown = true end |