How is setTimeout implemented in node.js
You’ve done most of the work already. V8 doesn’t provides an implementation for setTimeout because it’s not part of ECMAScript. The function you use is implemented in timers.js, which creates an instance of a Timeout object which is a wrapper around a C class. There is a comment in the source describing how they are … Read more