search

goog.async.Delay<THIS>

Provided By
Extends
All Implemented Interfaces

A Delay object invokes the associated function after a specified delay. The interval duration can be specified once in the constructor, or can be defined each time the delay is started. Calling start on an active delay will reset the timer.

new Delay<THIS>( listener, opt_interval, opt_handler )

Parameters
listenerfunction(): ?

Function to call when the delay completes.

opt_intervalnumber=

The default length of the invocation delay (in milliseconds).

opt_handler(THIS|null)=

The object scope to invoke the function in.

Instance Methods

Instance Properties