Class: NullTimer

NullTimer


new NullTimer()

A NullTimer is a timer device that will never tick. You probably don't want to use it. If you're looking for a synchronous timer, check SerialTimer instead. If you're looking for an asynchronous timer that works on Node.js, check ImmediateTimer instead. If you're looking for a synchronous timer that works on Node.js, check SerialTimer instead.

Implements:
Source:
See:

Methods


cancelTick(handler)

An engine will call this function if it wants to prevent a scheduled function from being executed.

Parameters:
Name Type Description
handler Opaque

The handler returned by Timer#nextTick.

Implements:
Source:

nextTick(fn)

An engine will call this function if it wants to schedule a function to be called at the next tick.

Parameters:
Name Type Description
fn function

The function that should be registered.

Implements:
Source:
Returns:

handler

Type
Opaque

start(beginning, ending)

Start the timer.

Parameters:
Name Type Argument Description
beginning function <optional>

An optional function that will be called before each tick.

ending function <optional>

An optional function that will be caled after each tick.

Implements:
Source:

stop()

Stop the timer.

Implements:
Source: