Class Deferred

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): Deferred

Returns

Deferred

Properties

public static methods: Array<string>

Methods

public call(val?: any): Deferred

Parameters

  • val?: any optional

Returns

Deferred

public static call(fun?: Function, args?: Array<any>): Deferred

Parameters

  • fun?: Function optional
  • args?: Array<any> optional

Returns

Deferred

public cancel(): Deferred

Returns

Deferred

public static chain(args?: Array<any>): Deferred

Parameters

  • args?: Array<any> optional

Returns

Deferred

public static connect(funo: any, options: string): DeferredizedFunction

Parameters

  • funo: any
  • options: string

Returns

DeferredizedFunction

public static connect(funo: Function, options?: ConnectOption): DeferredizedFunction

Parameters

Returns

DeferredizedFunction

public static define(obj?: any, list?: Array<string>): any

Parameters

  • obj?: any optional
  • list?: Array<string> optional

Returns

any

public static earlier(dl: any): Deferred

Parameters

  • dl: any

Returns

Deferred

public error(fun: ErrorCallback): Deferred

Parameters

Returns

Deferred

public fail(err: any): Deferred

Parameters

  • err: any

Returns

Deferred

public static isDeferred(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public static loop(n: number, fun: FunctionWithNumber): Deferred

Parameters

Returns

Deferred

public static loop(n: Loop, fun: FunctionWithNumber): Deferred

Parameters

Returns

Deferred

public loop(n: number, fun: FunctionWithNumber): Deferred

Parameters

Returns

Deferred

public loop(n: Loop, fun: FunctionWithNumber): Deferred

Parameters

Returns

Deferred

public static next(fun: Function): Deferred

Parameters

  • fun: Function

Returns

Deferred

public next(fun: Function): Deferred

Parameters

  • fun: Function

Returns

Deferred

public static parallel(dl: any): Deferred

Parameters

  • dl: any

Returns

Deferred

public parallel(dl: any): Deferred

Parameters

  • dl: any

Returns

Deferred

public static register(name: string, fun: DeferredizedFunction)

Parameters

public static repeat(n: number, fun: FunctionWithNumber): Deferred

Parameters

Returns

Deferred

public static retry(retryCount: number, funcDeferred: DeferredizedFunctionWithNumber, options?: RetryOption): Deferred

Parameters

Returns

Deferred

public wait(n: number): Deferred

Parameters

  • n: number

Returns

Deferred

public static wait(n: number): Deferred

Parameters

  • n: number

Returns

Deferred