Function
Static Public Summary | ||
public |
disposeAndRemoveEntry(func: *, context: *, list: *, isTicker: *) |
|
public |
executeAsync(predicate: *, apiFunc: *): * |
|
public |
executeEntries(entries: array, callLater: boolean): number Executes all the stored functions , if callLater enabled, executes them in frame cycle |
|
public |
executeInSyncOrAsync(predicate: function, apiFunc: function, callback: function, errorCallback: function): void Based on return value of predicate, this function decides whether to execute the method immediately or in frame cycle |
Static Public
public disposeAndRemoveEntry(func: *, context: *, list: *, isTicker: *) source
import {disposeAndRemoveEntry} from '@statetree/functions/lib/helpers.js'
Params:
Name | Type | Attribute | Description |
func | * | ||
context | * | ||
list | * | ||
isTicker | * |
public executeAsync(predicate: *, apiFunc: *): * source
import {executeAsync} from '@statetree/functions/lib/helpers.js'
Params:
Name | Type | Attribute | Description |
predicate | * | ||
apiFunc | * |
Return:
* |
public executeEntries(entries: array, callLater: boolean): number source
import {executeEntries} from '@statetree/functions/lib/helpers.js'
Executes all the stored functions , if callLater enabled, executes them in frame cycle
Params:
Name | Type | Attribute | Description |
entries | array | of which contains the function and its context. |
|
callLater | boolean | indicates execution needs to happen in frame cycle |
public executeInSyncOrAsync(predicate: function, apiFunc: function, callback: function, errorCallback: function): void source
import {executeInSyncOrAsync} from '@statetree/functions/lib/helpers.js'
Based on return value of predicate, this function decides whether to execute the method immediately or in frame cycle
Return:
void |