why can't you put the code behind a promise? (typed in off the top of my head)
new Promise(function(resolve, reject) {_x000D_
setTimeout(resolve, 2000);_x000D_
}).then(function() {_x000D_
console.log('do whatever you wanted to hold off on');_x000D_
});
_x000D_