makeSubscriptionPromiseMulti
makeSubscriptionPromiseMulti<
SubscriptionType>(args):object
A wrapper around [[makeSubscriptionPromise]] that helps to build multiple promises which listen to the same subscription.
Type parameters
• SubscriptionType
Parameters
• args: Array<TerminationOptions<SubscriptionType>>
An array of objects each of which provides the arguments for creation of one promise.
Returns
object
An object containing both a subscription callback and an array of promises which resolve or reject depending on the values pushed to the callback.
promises
promises:
Array<Promise<SubscriptionType>>
subscription()
subscription: (
value) =>void
Parameters
• value: SubscriptionType
Returns
void