Wednesday, 7 June 2017

Determine an empty event loop

Is there a way to determine if there is an empty event loop?

For example,

// Example 1
setInterval(() => console.log("hi"), 1000);
// event loop is not empty


// Example 2
console.log("hi");
// event loop is now empty



via Kousha

No comments:

Post a Comment