interface QPromise<T> {
    $$intervalId: number;
    $$timeoutId: number;
    all: ((arg0: QPromise<T>[]) => QPromise<T>);
    catch: ((arg0: ((reason: any) => T | PromiseLike<never> | PromiseLike<T>)) => QPromise<T> | T);
    finally: ((arg0: (() => void)) => QPromise<T>);
    then: ((arg0: any, arg1: any) => QPromise<T>);
}

Type Parameters

  • T

Properties

$$intervalId: number

Internal id set by the $interval service for callback notifications

$$timeoutId: number

Timeout id set by the $timeout service for cancelations

all: ((arg0: QPromise<T>[]) => QPromise<T>)
catch: ((arg0: ((reason: any) => T | PromiseLike<never> | PromiseLike<T>)) => QPromise<T> | T)

Shorthand for promise.then(null, errorCallback).

finally: ((arg0: (() => void)) => QPromise<T>)

Allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value.

then: ((arg0: any, arg1: any) => QPromise<T>)

Calls one of the success or error callbacks asynchronously as soon as the result is available.