Welcome to mirror list, hosted at ThFree Co, Russian Federation.

timers.js « benchmark - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 095cca119b48b91d64a053fd51b569751fc09433 (plain)
1
2
3
4
5
function next (i) {
  if (i <= 0) return;
  setTimeout(function () { next(i-1); }, 1);
}
next(700);