Class God::Driver
In: lib/god/driver.rb
Parent: Object

Methods

clear_events   message   new   schedule  

Attributes

thread  [R] 

Public Class methods

Instantiate a new Driver and start the scheduler loop to handle events

  +task+ is the Task this Driver belongs to

Returns Driver

Public Instance methods

Clear all events for this Driver

Returns nothing

Queue an asynchronous message

  +name+ is the Symbol name of the operation
  +args+ is an optional Array of arguments

Returns nothing

Create and schedule a new DriverEvent

  +condition+ is the Condition
  +delay+ is the number of seconds to delay (default: interval defined in condition)

Returns nothing

[Validate]