@nevermined-io/sdk - v3.0.44 / SubscribablePromise
Name |
---|
T |
P |
• new SubscribablePromise<T
, P
>(executor
): SubscribablePromise
<T
, P
>
Name |
---|
T |
P |
Name | Type |
---|---|
executor |
(observer : SubscribableObserver <T , P >) => void | Promise <P > |
SubscribablePromise
<T
, P
>
src/utils/SubscribablePromise.ts:15
• Private
observer: SubscribableObserver
<T
, P
>
src/utils/SubscribablePromise.ts:4
• Private
promise: Promise
<P
> & SubscribablePromise
<T
, P
>
src/utils/SubscribablePromise.ts:6
▸ catch(onrejected?
): Promise
<any
> & SubscribablePromise
<T
, P
>
Name | Type |
---|---|
onrejected? |
(error : any ) => any |
Promise
<any
> & SubscribablePromise
<T
, P
>
src/utils/SubscribablePromise.ts:33
▸ finally(onfinally?
): Promise
<P
> & SubscribablePromise
<T
, P
>
Name | Type |
---|---|
onfinally? |
() => any |
Promise
<P
> & SubscribablePromise
<T
, P
>
src/utils/SubscribablePromise.ts:37
▸ init(executor
): void
Name | Type |
---|---|
executor |
(observer : SubscribableObserver <T , P >) => void | Promise <P > |
void
src/utils/SubscribablePromise.ts:41
▸ next(onNext
): SubscribablePromise
<T
, P
>
Name | Type |
---|---|
onNext |
(next : T ) => void |
SubscribablePromise
<T
, P
>
src/utils/SubscribablePromise.ts:24
▸ subscribe(onNext
): Object
Name | Type |
---|---|
onNext |
(next : T ) => void |
Object
Name | Type |
---|---|
unsubscribe |
() => boolean |
src/utils/SubscribablePromise.ts:20
▸ then(onfulfilled?
, onrejected?
): Promise
<any
> & SubscribablePromise
<T
, P
>
Name | Type |
---|---|
onfulfilled? |
(value : P ) => any |
onrejected? |
(error : any ) => any |
Promise
<any
> & SubscribablePromise
<T
, P
>