Archive for March, 2014

Mar 02 2014

AngularJS $q Promise Delayer

Published under Technology

In class a couple months ago (the Angular Boot Camp I often teach), a student asked how to do something like Thread.sleep(n) in JavaScript. Of course there isn’t such a thing, at least in the main JS execution environments (browsers, Node). Rather there is the asynchronous equivalent of setTimeout(). But there is an equivalent, nearly […]

Comments Off on AngularJS $q Promise Delayer