lib/dispatcher.js
function (token) {
    var tokens = token;
    if (!_.isArray(tokens)) {
      tokens = [tokens];
    }

    tokens = tokens.map(function (token) {
      // Allow passing stores straight and we grab the dispatcherToken
      return token.dispatcherToken || token;
    });

    return this.dispatcher.waitFor(tokens);
  }
function (token) {
    var tokens = token;
    if (!_.isArray(tokens)) {
      tokens = [tokens];
    }

    tokens = tokens.map(function (token) {
      // Allow passing stores straight and we grab the dispatcherToken
      return token.dispatcherToken || token;
    });

    return this.dispatcher.waitFor(tokens);
  }
function ( token ) { var tokens = token ; if ( ! _ . isArray ( tokens ) ) { tokens = [ tokens ] ; } tokens = tokens . map ( function ( token ) { // Allow passing stores straight and we grab the dispatcherToken return token . dispatcherToken || token ; } ) ; return this . dispatcher . waitFor ( tokens ) ; }
Wait for another callback to occur before continuing

@param {string|string[]|Store} token - The collection of dispatch tokens to wait on
Wait for another callback to occur before continuing