Sha256: 781faf225a45a3736ec876e0ee0737107bd4027765fef8d30338b9b20305f50d

Contents?: true

Size: 1.49 KB

Versions: 49

Compression:

Stored size: 1.49 KB

Contents

import { Observable } from '../Observable';
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { TeardownLogic } from '../Subscription';
import { OuterSubscriber } from '../OuterSubscriber';
import { InnerSubscriber } from '../InnerSubscriber';
/**
 * Returns an Observable that mirrors the first source Observable to emit an item.
 * @param {...Observables} ...observables sources used to race for which Observable emits first.
 * @return {Observable} an Observable that mirrors the output of the first Observable to emit an item.
 * @static true
 * @name race
 * @owner Observable
 */
export declare function race<T>(observables: Array<Observable<T>>): Observable<T>;
export declare function race<T>(observables: Array<Observable<any>>): Observable<T>;
export declare function race<T>(...observables: Array<Observable<T> | Array<Observable<T>>>): Observable<T>;
export declare class RaceOperator<T> implements Operator<T, T> {
    call(subscriber: Subscriber<T>, source: any): TeardownLogic;
}
/**
 * We need this JSDoc comment for affecting ESDoc.
 * @ignore
 * @extends {Ignored}
 */
export declare class RaceSubscriber<T> extends OuterSubscriber<T, T> {
    private hasFirst;
    private observables;
    private subscriptions;
    constructor(destination: Subscriber<T>);
    protected _next(observable: any): void;
    protected _complete(): void;
    notifyNext(outerValue: T, innerValue: T, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, T>): void;
}

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
govuk_publishing_components-16.21.0 node_modules/rxjs/observable/race.d.ts
govuk_publishing_components-16.20.1 node_modules/rxjs/observable/race.d.ts
govuk_publishing_components-16.20.0 node_modules/rxjs/observable/race.d.ts
govuk_publishing_components-16.19.0 node_modules/rxjs/observable/race.d.ts
govuk_publishing_components-16.18.0 node_modules/rxjs/observable/race.d.ts
govuk_publishing_components-16.17.0 node_modules/rxjs/observable/race.d.ts
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/inquirer/node_modules/rxjs/observable/race.d.ts
locomotivecms-3.4.0 app/javascript/node_modules/rxjs/observable/race.d.ts
dragonfly_puppeteer-0.1.0 node_modules/rxjs/observable/race.d.ts