@nevermined-io/sdk - v3.0.44 / SubscribableObserver
Name |
---|
T |
P |
• new SubscribableObserver<T
, P
>(): SubscribableObserver
<T
, P
>
Name |
---|
T |
P |
SubscribableObserver
<T
, P
>
• completed: boolean
= false
src/utils/SubscribableObserver.ts:2
• Private
subscriptions: Set
<{ onComplete?
: (complete
: P
) => void
; onError?
: (error
: any
) => void
; onNext?
: (next
: T
) => void
}>
src/utils/SubscribableObserver.ts:4
▸ complete(resolve?
): void
Name | Type |
---|---|
resolve? |
P |
void
src/utils/SubscribableObserver.ts:30
▸ emit(type
, value
): void
Name | Type |
---|---|
type |
"onNext" | "onComplete" | "onError" |
value |
any |
void
src/utils/SubscribableObserver.ts:40
▸ error(error?
): void
Name | Type |
---|---|
error? |
any |
void
src/utils/SubscribableObserver.ts:35
▸ next(next?
): void
Name | Type |
---|---|
next? |
T |
void
src/utils/SubscribableObserver.ts:26
▸ subscribe(onNext?
, onComplete?
, onError?
): Object
Name | Type |
---|---|
onNext? |
(next : T ) => void |
onComplete? |
(complete : P ) => void |
onError? |
(error : any ) => void |
Object
Name | Type |
---|---|
unsubscribe |
() => boolean |
src/utils/SubscribableObserver.ts:10
▸ unsubscribe(): void
void