class Minitest::DRb::Server
Public Class Methods
Source
# File lib/minitest/drb.rb, line 10 def initialize finish_queue @work_queue = Queue.new @finish_queue = finish_queue end
Public Instance Methods
Source
# File lib/minitest/drb.rb, line 22 def << work @work_queue << work end
Server
pushes work on the queue here
Source
# File lib/minitest/drb.rb, line 32 def finish @finish_queue << Object.new end
Clients call this when they are done working
Source
# File lib/minitest/drb.rb, line 27 def pop @work_queue.pop end
Client
pops work off the queue here
Source
# File lib/minitest/drb.rb, line 15 def record(reporter, result) reporter.synchronize do reporter.record(result) end end