part-next-tick

0.0.1 • Public • Published

Part Next Tick

Node/browser process.nextTick implementation.

In the browser, it will try requestAnimationFrame and fallback to setTimeout. In node.js, it just uses process.nextTick.

Installation

node.js:

$ npm install part-next-tick

browser:

$ component install part/next-tick

Example

var nextTick = require('part-next-tick');

nextTick(function(){
  console.log('after');
});

console.log('before');

Licence

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i part-next-tick

      Weekly Downloads

      1

      Version

      0.0.1

      License

      none

      Last publish

      Collaborators

      • viatropos