Sha256: 5ffc4cb4fb1e111f57c570b316c731f20dee5252c5b494d9888771c77c2c94fa
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
require 'rubygems' require '../lib/gearman' Gearman::Util.debug = true servers = ['localhost:4730'] client = Gearman::Client.new(servers) #try this out client.option_request("exceptions") taskset = Gearman::TaskSet.new(client) task = Gearman::Task.new('fail_with_exception', 20) task.on_complete {|d| puts d } task.on_exception {|message| puts message; false} taskset.add_task(task) taskset.wait(100)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xing-gearman-ruby-1.1.0 | examples/client_exception.rb |