Home > front end >  Consult! Nodejs delay during other events trigger caused delay time variable-length solution
Consult! Nodejs delay during other events trigger caused delay time variable-length solution

Time:09-17

Nodejs set up surveillance camera sweep code data, once data use setTimeout delay printing label after a certain time (Sms); But if it receives the data in the middle, will go to deal with the content of the monitoring function, delay time increases, into a S + N (ms), is there any way to solve this problem? Is to guarantee the delay time constant, is S (ms) after printing, regardless of whether there is a new data arrives in the middle
  • Related