MultiSynchronizer
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(throttleAfter: number, throttleWait: number) |
Method Summary
Public Methods | ||
public |
clear(): void Reject all jobs in the queue and clear it. |
|
public |
isWorking(tag: string): boolean |
|
public |
push(tag: string, fn: function(): T): Promise<T> Push function to the Synchronizer for later, synchronous execution |
Inherited Summary
From class Observable | ||
public static get |
WILDCARD: string: string |
|
public |
bubble(observable: Observable, types: ...string) |
|
public |
fire(type: string, args: ...*): Promise | null |
|
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
Public Constructors
public constructor(throttleAfter: number, throttleWait: number) source
Override:
Observable#constructorParams:
Name | Type | Attribute | Description |
throttleAfter | number |
|
|
throttleWait | number |
|
Public Methods
public isWorking(tag: string): boolean source
Params:
Name | Type | Attribute | Description |
tag | string |
Return:
boolean |
public push(tag: string, fn: function(): T): Promise<T> source
Push function to the Synchronizer for later, synchronous execution
Params:
Name | Type | Attribute | Description |
tag | string | ||
fn | function(): T | Function to be invoked later by this Synchronizer |
Return:
Promise<T> |