Project

General

Profile

« Previous | Next » 

Revision ce01c950

Added by Marc Dequènes over 13 years ago

  • ID ce01c950cf32f44a1b116b5ce3b21f1f141f1be6

[evol] Cyborg: allow to schedule a task without callback

View differences:

lib/cyborghood/cyborg.rb
DSL::Task.new(self, name, &block)
end
def schedule_task(callback, &task)
def schedule_task(callback = nil, &task)
EventMachine.defer(task, callback)
end
end

Also available in: Unified diff