Packagecom.transmote.utils.time
Classpublic class Timeout
InheritanceTimeout Inheritance Object

Calls a function one time, after a specified delay. Accepts optional parameters to the specified method. (Wraps a simple Timer implementation.) All active timeouts can be cleared via a static method.



Public Methods
 MethodDefined By
  
Timeout(func:Function, delay:Number, ... params)
Constructor.
Timeout
  
cancel():void
Cancel the Timeout and remove all references to the Function and optional parameters, freeing up this Timeout for garbage collection.
Timeout
  
[static] Cancel all currently-active Timeouts.
Timeout
Constructor Detail
Timeout()Constructor
public function Timeout(func:Function, delay:Number, ... params)

Constructor.

Parameters
func:Function — A Function to be called after a specified delay. This Function must be public for the Timeout to be able to execute the call.
 
delay:Number — Time (in msec) after which the Function will be called.
 
... params — Parameters passed to the Function.
Method Detail
cancel()method
public function cancel():void

Cancel the Timeout and remove all references to the Function and optional parameters, freeing up this Timeout for garbage collection.

cancelAllTimeouts()method 
public static function cancelAllTimeouts():void

Cancel all currently-active Timeouts.