W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
class ConnectableObservable<T> extends Observable {
constructor(source: Observable<T>, subjectFactory: () => Subject<T>)
protected _subject: Subject<T>
protected _refCount: number
protected _connection: Subscription
source: Observable<T>
protected subjectFactory: () => Subject<T>
_subscribe(subscriber: Subscriber<T>)
protected getSubject(): Subject<T>
connect(): Subscription
refCount(): Observable<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(source: Observable<T>, subjectFactory: () => Subject<T>)`
參量: | 類型: |
---|---|
資源 | 類型:Observable |
subjectFactory | 類型:。`() => Subject |
屬性 | 類型 | 描述 |
---|---|---|
_學(xué)科 | Subject<T> |
|
_refCount | number |
|
_連接 | Subscription |
|
資源 | Observable<T> |
在構(gòu)造函數(shù)中聲明。 |
subjectFactory | () => Subject<T> |
在構(gòu)造函數(shù)中聲明。 |
_訂閱() _subscribe(subscriber: Subscriber<T>)
參量: | 類型: |
---|---|
訂戶 | 類型:。Subscriber |
getSubject() |
---|
protected getSubject(): Subject<T> 參量沒有參數(shù)。退貨Subject<T> |
connect() |
---|
connect(): Subscription 參量沒有參數(shù)。退貨Subscription |
refCount() |
---|
refCount(): Observable<T> 參量沒有參數(shù)。退貨Observable<T> |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: