Syntactic sugar for tasks, TORQUE-82.
Syntactic sugar for tasks, TORQUE-82.

Define your task like so:

  class YourTask < TorqueBox::Messaging::Task
    def do_your_thing(payload)
      puts "payload: #{payload.inspect}"
    end
  end

Asynchronously invoke it like so:

  YourTask.async(:do_your_thing, :time => Time.now, :user => 42)

Still need tests and docs.

samwgoldman/torquebox,vaskoz/torquebox,samwgoldman/torquebox,mje113/torquebox,torquebox/torquebox,torquebox/torquebox-release,samwgoldman/torquebox,mje113/torquebox,mje113/torquebox,ksw2599/torquebox,vaskoz/torquebox,vaskoz/torquebox,ksw2599/torquebox,torquebox/torquebox,torquebox/torquebox-release,ksw2599/torquebox,torquebox/torquebox-release,torquebox/torquebox-release,vaskoz/torquebox,torquebox/torquebox,torquebox/torquebox,samwgoldman/torquebox,ksw2599/torquebox,mje113/torquebox