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

Methods

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

Check if we‘re in the driver context

Returns true if in driver thread

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

Shutdown the DriverEventQueue threads

Returns nothing

[Validate]