Sha256: 809de27f6f3357732cc8e594afbcee54772eac94a1f53bc9eff5b861540a5d66

Contents?: true

Size: 346 Bytes

Versions: 9

Compression:

Stored size: 346 Bytes

Contents

require 'rubygems'
#require 'gearman'
require '../lib/gearman'
Gearman::Util.debug = true

servers = ['localhost:4730']
  
client = Gearman::Client.new(servers)
taskset = Gearman::TaskSet.new(client)

task = Gearman::Task.new('chunked_transfer')
task.on_data {|d| puts d }
task.on_complete {|d| puts d }

taskset.add_task(task)
taskset.wait(100)

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
gearman-ruby-3.0.8 examples/client_data.rb
xing-gearman-ruby-1.3.0 examples/client_data.rb
xing-gearman-ruby-1.3.1 examples/client_data.rb
gearman-ruby-3.0.7 examples/client_data.rb
gearman-ruby-3.0.6 examples/client_data.rb
gearman-ruby-3.0.4 examples/client_data.rb
gearman-ruby-3.0.3 examples/client_data.rb
gearman-ruby-3.0.2 examples/client_data.rb
gearman-ruby-3.0.1 examples/client_data.rb