How to use the delay function from q

Find comprehensive JavaScript q.delay code examples handpicked from public code repositorys.

71
72
73
74
75
76
77
78
79
  self.work.initial();

  self.start = self.now();
  self.interrupted = false;

  return Q.delay(1000);

}).then(function() { /* Work: start */
  return self.work.start();
fork icon7
star icon73
watch icon7

+ 3 other calls in file