Sha256: 7482abe9922caee2b6aeb130175aa9adb362508f0792524fd5bd927537a7a19b
Contents?: true
Size: 311 Bytes
Versions: 6
Compression:
Stored size: 311 Bytes
Contents
require 'rubygems' #require 'gearman' require '../lib/gearman' servers = ['localhost:4730',] client = Gearman::Client.new(servers) taskset = Gearman::TaskSet.new(client) task = Gearman::Task.new('sleep', 20, { :background => true }) task.on_complete {|d| puts d } taskset.add_task(task) taskset.wait(100)
Version data entries
6 entries across 6 versions & 1 rubygems