Class: Slave

Inherits:
Object
  • Object
show all
Defined in:
ext/slave.rb

Defined Under Namespace

Classes: LifeLine

Instance Method Summary collapse

Instance Method Details

#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