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

Methods

Constants

INTERVAL = 0.25

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

Handle the next event (poll condition) that is due

Returns nothing

Handle the next queued operation that was issued asynchronously

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]