Method: Nailgun::Client#receive_loop
- Defined in:
- lib/nailgun/client.rb
#receive_loop ⇒ Object
Public: Start the receiver loop Thread, memoize it, and return the Thread
Returns the Thread object, whose value will eventually be the exit status from the Nailgun server
55 56 57 58 59 60 61 |
# File 'lib/nailgun/client.rb', line 55 def receive_loop @loop ||= Thread.new { catch(:exit) do loop { receive_chunk } end } end |