class PolymerJob


Like Timer but can be restarted, and if no duration is supplied uses window.requestAnimationFrame instead of a 0-duration timer.

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
isScheduled → bool

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

complete() → void

Synchronously completes the job.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
start(void callback(), [Duration wait]) → void

Starts the job. If the job is already running, it will stop first.

stop() → void

Stops the job. It can be restarted by calling start with a new callback.

toString() → String

Returns a string representation of this object.

inherited