src/promissory-arbiter.js
function unsuspendSubscriber (topic, token) {
    if (typeof token === 'string') {
      return !!applyTopicDescendents(
        unsuspendTopic, 'subscriptions', token, topic
      );
    }

    var node = ancestorTopicSearch(token.topic, topic);
    if (node.topic !== token.topic) {
      return false;
    }

    var i = searchAround(
      getId, getPriority,
      token.id, token.priority,
      binaryIndexBy(getPriority, token.priority, node.subscriptions),
      node.subscriptions
    );

    if (i === -1) {
      return false;
    }

    return !!unsuspendNode(node.subscriptions[i]);
  }
function unsuspendSubscriber (topic, token) {
    if (typeof token === 'string') {
      return !!applyTopicDescendents(
        unsuspendTopic, 'subscriptions', token, topic
      );
    }

    var node = ancestorTopicSearch(token.topic, topic);
    if (node.topic !== token.topic) {
      return false;
    }

    var i = searchAround(
      getId, getPriority,
      token.id, token.priority,
      binaryIndexBy(getPriority, token.priority, node.subscriptions),
      node.subscriptions
    );

    if (i === -1) {
      return false;
    }

    return !!unsuspendNode(node.subscriptions[i]);
  }
function unsuspendSubscriber ( topic , token ) { if ( typeof token === 'string' ) { return ! ! applyTopicDescendents ( unsuspendTopic , 'subscriptions' , token , topic ) ; } var node = ancestorTopicSearch ( token . topic , topic ) ; if ( node . topic !== token . topic ) { return false ; } var i = searchAround ( getId , getPriority , token . id , token . priority , binaryIndexBy ( getPriority , token . priority , node . subscriptions ) , node . subscriptions ) ; if ( i === - 1 ) { return false ; } return ! ! unsuspendNode ( node . subscriptions [ i ] ) ; }
Finds the subscription associated with a token and unsuspendes it. Returns false if it was removed and true it was unsuspended.
Finds the subscription associated with a token and unsuspendes it . Returns false if it was removed and true it was unsuspended .