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

The Driver class is responsible for scheduling all of the events for a given Task.

Methods

Attributes

thread  [R]  The Thread running the driver loop.

Public Class methods

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

task - The Task this Driver belongs to.

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, false if not.

Queue an asynchronous message.

name - The Symbol name of the operation. args - An optional Array of arguments.

Returns nothing.

Create and schedule a new DriverEvent.

condition - The Condition. delay - The Numeric number of seconds to delay (default: interval

            defined in condition).

Returns nothing.

Shutdown the DriverEventQueue threads.

Returns nothing.

[Validate]