Say I have a promise and I use .then to wait for it to resolve,
var suc = function(){ console.log('promise ended') }
var err = function(e){ console.log('promise ended') }
promise.then( suc, err );
>> promise ended
>> promise ended
What if I do not care if It succedes or fails? I just want to know it was completed.
promise.both(function(){console.log('next')}
Is there such a function?