makeSubscriptionPromiseMulti
makeSubscriptionPromiseMulti<
SubscriptionType>(args):object
A wrapper around [[makeSubscriptionPromise]] that helps to build multiple promises which listen to the same subscription.
Type parameters
Section titled “Type parameters”• SubscriptionType
Parameters
Section titled “Parameters”• args: Array<TerminationOptions<SubscriptionType>>
An array of objects each of which provides the arguments for creation of one promise.
Returns
Section titled “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
Section titled “promises”promises:
Array<Promise<SubscriptionType>>
subscription()
Section titled “subscription()”subscription: (
value) =>void
Parameters
Section titled “Parameters”• value: SubscriptionType
Returns
Section titled “Returns”void