This repo contains the following examples:
eventloop.js
contains a comparison betweenPromise
,setTimeout
,setImmediate
,queueMicrotask
, andprocess.nextTick
nextTick.js
contains an example on howprocess.nextTick
would make a function to be called asynchronously