src/promissory-arbiter.js
function subscriptionDispatcher (topic, data, options, subscriptions) {
    var
      resolver = createResolver(),
      fulfill = resolveUse('fulfilledValues', 'fulfilled', options, resolver),
      reject = resolveUse('rejectedValues', 'rejected', options, resolver);

    resolver.i = subscriptions.length - 1;
    resolver.resume = {
      topic: topic,
      data: data,
      subscriptions: subscriptions,
      fulfill: fulfill,
      reject: reject
    };

    resumeSubscriptionDispatcher(
      topic, data, options, subscriptions, resolver, fulfill, reject
    );
    evaluateLatch(resolver, options);

    return resolver.promise;
  }
function subscriptionDispatcher (topic, data, options, subscriptions) {
    var
      resolver = createResolver(),
      fulfill = resolveUse('fulfilledValues', 'fulfilled', options, resolver),
      reject = resolveUse('rejectedValues', 'rejected', options, resolver);

    resolver.i = subscriptions.length - 1;
    resolver.resume = {
      topic: topic,
      data: data,
      subscriptions: subscriptions,
      fulfill: fulfill,
      reject: reject
    };

    resumeSubscriptionDispatcher(
      topic, data, options, subscriptions, resolver, fulfill, reject
    );
    evaluateLatch(resolver, options);

    return resolver.promise;
  }
function subscriptionDispatcher ( topic , data , options , subscriptions ) { var resolver = createResolver ( ) , fulfill = resolveUse ( 'fulfilledValues' , 'fulfilled' , options , resolver ) , reject = resolveUse ( 'rejectedValues' , 'rejected' , options , resolver ) ; resolver . i = subscriptions . length - 1 ; resolver . resume = { topic : topic , data : data , subscriptions : subscriptions , fulfill : fulfill , reject : reject } ; resumeSubscriptionDispatcher ( topic , data , options , subscriptions , resolver , fulfill , reject ) ; evaluateLatch ( resolver , options ) ; return resolver . promise ; }
Invokes all the subscriptions according to `options` and returns a promise that resolves according to `options`.
Invokes all the subscriptions according to options and returns a promise that resolves according to options .