News for hackers. Stuff that matters.
Re:JavaScript Modules by guiomie on Wednesday July 02, 2014 @08:48AM (#7976605)
"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?
Re:JavaScript Modules by Touche on Wednesday July 02, 2014 @08:58AM (#7976660)
process.nextTick is a native module. You can test this simply yourself:

    var a = 1;
    process.nextTick(function() {
      console.log(a);
    });
    a = 2;