examples/client_background.rb in gearman-ruby-3.0.1 vs examples/client_background.rb in gearman-ruby-3.0.2

- old
+ new

@@ -1,14 +1,14 @@ require 'rubygems' #require 'gearman' require '../lib/gearman' -servers = ['localhost:4730',] +servers = ['localhost:4731'] client = Gearman::Client.new(servers) taskset = Gearman::TaskSet.new(client) task = Gearman::Task.new('sleep', 20, { :background => true }) -task.on_complete {|d| puts d } +#task.on_complete {|d| puts d } taskset.add_task(task) -taskset.wait(100) +#taskset.wait(100)