Home Reference Source Test
public class | source

MultiSynchronizer

Extends:

Observable → MultiSynchronizer

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#constructor

Params:

NameTypeAttributeDescription
throttleAfter number
  • optional
throttleWait number
  • optional

Public Methods

public clear(): void source

Reject all jobs in the queue and clear it.

Return:

void

public isWorking(tag: string): boolean source

Params:

NameTypeAttributeDescription
tag string

Return:

boolean

public push(tag: string, fn: function(): T): Promise<T> source

Push function to the Synchronizer for later, synchronous execution

Params:

NameTypeAttributeDescription
tag string
fn function(): T

Function to be invoked later by this Synchronizer

Return:

Promise<T>