Sha256: e987fa47f2e408966a2766bbd518de04ed39a06c7f8e53a3108a46233fd74fcd
Contents?: true
Size: 332 Bytes
Versions: 3
Compression:
Stored size: 332 Bytes
Contents
require 'rubygems' #require 'gearman' require '../lib/gearman' # Gearman::Util.debug = true servers = ['localhost:4730', 'localhost:4731'] client = Gearman::Client.new(servers) taskset = Gearman::TaskSet.new(client) task = Gearman::Task.new('sleep', 20) task.on_complete {|d| puts d } taskset.add_task(task) taskset.wait(100)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gearman-ruby-3.0.8 | examples/client.rb |
gearman-ruby-3.0.7 | examples/client.rb |
gearman-ruby-3.0.6 | examples/client.rb |