bezrukovp
2/3/2018 - 11:37 AM

Nodejs simple sleep

let waitTill = new Date(new Date().getTime() + 5 * 1000);
while(waitTill > new Date()){
  continue;
}