We all know that the asynchronism of node makes it inconvenient to do any timing function.
for example, after starting timer A, funtion B is executed one second later. But as long as event C occurs halfway, functionD, is triggered immediately and A retiming. How can a function like this be implemented?