Class: Fnf::Worker
- Inherits:
-
Object
- Object
- Fnf::Worker
- Defined in:
- lib/fnf/worker.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/fnf/worker.rb', line 21 def self.run pipe = Fifo.new('/tmp/fnfq') EventMachine::run do EventMachine::watch(pipe.to_io, RequestWorker, pipe) do |c| c.notify_readable = true end end end |