with fallback to setImmediate and setTimeout
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
test.js

README.md

go (a.k.a just-next-tick)

Cross-platform next-tick with fallback to setTimeout.

Install

$ npm install go # or npm install just-next-tick

Usage

var go = require('go')

go(function () {
  console.log('world')
})

console.log('hello')

// hello
// world