3 ms·
"We’re going to build a simple asap module, which lets you schedule some work to happen as soon as possible, but asynchronously. In Node.js, you can do this via
by guiomie 12y ago
"We’re going to build a simple asap module, which lets you schedule some work to happen as soon as possible, but asynchronously. In Node.js, you can do this via process.nextTick," ... I thought process.nextTick wasn't the equivalent to an async, and that async could only be done in native modules ... Can someone correct me or the author?
- Touche 12y agoprocess.nextTick is a native module. You can test this simply yourself: var a = 1; process.nextTick(function() { console.log(a); }); a = 2;