W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
一個 Observable 表示值,該值屬于由公共鍵表示的同一組。GroupedObservable 發(fā)出的值來自源 Observable。公用密鑰可用作 key
GroupedObservable 實例上的字段。
class GroupedObservable<K, T> extends Observable {
constructor(key: K, groupSubject: Subject<T>, refCountSubscription?: RefCountSubscription)
key: K
_subscribe(subscriber: Subscriber<T>)
// inherited from index/Observable
static create: Function
static if: typeof iif
static throw: typeof throwError
constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic)
_isScalar: boolean
source: Observable<any>
operator: Operator<any, T>
lift<R>(operator: Operator<T, R>): Observable<R>
subscribe(observerOrNext?: NextObserver<T> | ErrorObserver<T> | CompletionObserver<T> | ((value: T) => void), error?: (error: any) => void, complete?: () => void): Subscription
_trySubscribe(sink: Subscriber<T>): TeardownLogic
forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise<void>
pipe(...operations: OperatorFunction<any, any>[]): Observable<any>
toPromise(promiseCtor?: PromiseConstructorLike): Promise<T>
}
constructor(key: K, groupSubject: Subject<T>, refCountSubscription?: RefCountSubscription)
參量鍵類型:K
。groupSubject 類型:。Subject
refCountSubscription 可選的。默認值為 undefined
。類型:RefCountSubscription
。
屬性 | 類型 | 描述 |
---|---|---|
Key | K |
在構造函數(shù)中聲明。 |
_訂閱() _subscribe(subscriber: Subscriber<T>)
參量: | 類型: |
---|---|
訂閱用戶 | 類型:Subscriber |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: