mergeScan.d.ts
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Operator } from '../Operator';
import { Observable } from '../Observable';
import { Subscriber } from '../Subscriber';
import { Subscription } from '../Subscription';
import { OuterSubscriber } from '../OuterSubscriber';
import { InnerSubscriber } from '../InnerSubscriber';
/**
* @param project
* @param seed
* @param concurrent
* @return {Observable<R>|WebSocketSubject<T>|Observable<T>}
* @method mergeScan
* @owner Observable
*/
export declare function mergeScan<T, R>(this: Observable<T>, project: (acc: R, value: T) => Observable<R>, seed: R, concurrent?: number): Observable<R>;
export declare class MergeScanOperator<T, R> implements Operator<T, R> {
private project;
private seed;
private concurrent;
constructor(project: (acc: R, value: T) => Observable<R>, seed: R, concurrent: number);
call(subscriber: Subscriber<R>, source: any): any;
}
/**
* We need this JSDoc comment for affecting ESDoc.
* @ignore
* @extends {Ignored}
*/
export declare class MergeScanSubscriber<T, R> extends OuterSubscriber<T, R> {
private project;
private acc;
private concurrent;
private hasValue;
private hasCompleted;
private buffer;
private active;
protected index: number;
constructor(destination: Subscriber<R>, project: (acc: R, value: T) => Observable<R>, acc: R, concurrent: number);
protected _next(value: any): void;
private _innerSub(ish, value, index);
protected _complete(): void;
notifyNext(outerValue: T, innerValue: R, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, R>): void;
notifyComplete(innerSub: Subscription): void;
}