When provided a store name, comma delimited list of stores or an array, waitFor returns a promise that will be resolved when those stores have processed the action.
Proxies to Dispatcher
Internally this maps to the dispatchers waitFor method providing it a list of the stores dispatch tokens.
fluxapp.registerStore('user', {
logout: function() {
this.waitFor('session').then(function() {
// session store has finished processing
});
}
});
On to getStore