Q.delay(2000) .then(function () { alert('super!'); }, function () { alert('something went wrong'); });