Class rio.DelayedTask

DelayedTask will execute a function after a delay. Every time delay is called, any pending execution will be canceled.
Defined in: delayed_task.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Cancels the queued task
 
delay(delayLength, task, scope, args)
Executes the passed in task after a delay.
Class Detail
rio.DelayedTask()
Method Detail
cancel()
Cancels the queued task

delay(delayLength, task, scope, args)
Executes the passed in task after a delay. This will also cancel any pending tasks.
Parameters:
{Number} delayLength
The delay in milliseconds
{Function} task
Task to execute after the delay
{Object} scope
(optional) The scope in which to execute the task
{Array} args
(optional) Arguments to pass into the task function

Documentation generated by JsDoc Toolkit 2.0.2 on Thu Feb 25 2010 16:45:42 GMT-0600 (CST)