Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 287 Bytes

File metadata and controls

24 lines (16 loc) · 287 Bytes

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