Function makeSubscriptionPromiseMulti
- makeSubscriptionPromiseMulti<SubscriptionType>(args: TerminationOptions<SubscriptionType>[]): {
promises: Promise<SubscriptionType>[];
subscription: ((value: SubscriptionType) => void);
}
-
Returns {
promises: Promise<SubscriptionType>[];
subscription: ((value: SubscriptionType) => void);
}
-
promises: Promise<SubscriptionType>[]
-
subscription: ((value: SubscriptionType) => void)
-
- (value: SubscriptionType): void
-
Returns void
A wrapper around makeSubscriptionPromise that helps to build multiple promises which listen to the same subscription.
Returns
An object containing both a subscription callback and an array of promises which resolve or reject depending on the values pushed to the callback.