TickEntry
Tick Entry is a wrapper to the function we want to execute later in request animation frame or event cycle
Example:
import Ticker from 'ticker'
let tickEntry = new TickEntry(context,listener,callback,priority);
Test:
Constructor Summary
| Public Constructor | ||
| public |
constructor(func: Function, context: Object, priority: number) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
notifier: * |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
dispose(): void This function dispose the tickEntry references for garbage collection |
|
| public |
executeAsSmallLoopsInCycle(maxLoopPerFrame: number, endIndex: number, startIndex: number): void This function adds the loop function to event cycle / request animation frame for execution |
|
| public |
executeInCycle(): void This function adds the func to event cycle / request animation frame for execution |
|
| public |
onDone(doneCallback: *): * |
|
| public |
onError(errorCallback: *): * |
|
Public Constructors
Public Members
public notifier: * source
Public Methods
public dispose(): void source
This function dispose the tickEntry references for garbage collection
Return:
| void |
Test:
public executeAsSmallLoopsInCycle(maxLoopPerFrame: number, endIndex: number, startIndex: number): void source
This function adds the loop function to event cycle / request animation frame for execution
Return:
| void |
public executeInCycle(): void source
This function adds the func to event cycle / request animation frame for execution
Return:
| void |
Test:
public onDone(doneCallback: *): * source
Params:
| Name | Type | Attribute | Description |
| doneCallback | * |
Return:
| * |
public onError(errorCallback: *): * source
Params:
| Name | Type | Attribute | Description |
| errorCallback | * |
Return:
| * |
