Class: Sqew::Payload

Inherits:
Qu::Payload
  • Object
show all
Defined in:
lib/sqew/payload.rb

Instance Method Summary collapse

Instance Method Details

#perform_forked(pipe) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/sqew/payload.rb', line 3

def perform_forked(pipe)
  klass.perform(*args)
  pipe.write(Marshal.dump([true, nil]))
rescue Exception => e
  pipe.write(Marshal.dump([false, e]))
  raise e
  # raise special exception
ensure
  pipe.close
end