Sha256: aaf80b9e52741ca65732ae139ea9d808531aca1827a4bdb3695659a7f83efa43

Contents?: true

Size: 283 Bytes

Versions: 20

Compression:

Stored size: 283 Bytes

Contents

require 'bertrpc'

$stdout.sync = true

threads = []
svc = BERTRPC::Service.new('localhost', 8000)

8.times do
  threads << Thread.new do
    i = 0
    10.times { i += svc.call.calc.add(1, 2); print '.'; $stdout.flush }
    print "(#{i})"
  end
end

threads.each { |t| t.join }

puts

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
mojombo-ernie-0.3.4 test/load.rb
ernie-2.5.2 test/load.rb
ernie-2.5.1 test/load.rb
ernie-2.5.0 test/load.rb
ernie-2.4.0 test/load.rb
ernie-2.3.0 test/load.rb
ernie-2.2.1 test/load.rb
schleyfox-ernie-2.2.3 test/load.rb
schleyfox-ernie-2.2.2 test/load.rb
schleyfox-ernie-2.2.1 test/load.rb
ernie-2.2.0 test/load.rb
ernie-2.1.0 test/load.rb
ernie-2.0.0 test/load.rb
ernie-1.3.0 test/load.rb
ernie-1.2.0 test/load.rb
ernie-1.1.0 test/load.rb
ernie-1.0.0 test/load.rb
ernie-0.4.0 test/load.rb
ernie-0.3.5 test/load.rb
ernie-0.3.4 test/load.rb