Sha256: db2bfac5a4b6b08b507f1a38536ce529c10dd437bee19a45f1453aed3419f5d9
Contents?: true
Size: 439 Bytes
Versions: 4
Compression:
Stored size: 439 Bytes
Contents
lib = File.join File.dirname(__FILE__), '..', 'lib' $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'fluffle' client = Fluffle::Client.new url: 'amqp://localhost' # You can also pass `connection:` to use an existing Bunny connection: # Fluffle::Client.new(connection: Bunny.new('amqp://localhost', heartbeat: 2)) timings = 10.times.map do t0 = Time.now client.call('foo').inspect Time.now - t0 end puts timings
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fluffle-0.3.1 | examples/client.rb |
fluffle-0.3.0 | examples/client.rb |
fluffle-0.2.2 | examples/client.rb |
fluffle-0.2.1 | examples/client.rb |