Package | com.transmote.utils.time |
Class | public class Timeout |
Inheritance | Timeout Object |
Method | Defined 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 | ||
cancelAllTimeouts():void [static]
Cancel all currently-active Timeouts. | Timeout |
Timeout | () | Constructor |
public function Timeout(func:Function, delay:Number, ... params)
Constructor.
Parametersfunc: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.
|
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.