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