Have ideas to improve npm?Join in the discussion! »

cancellable-next-tick

1.0.3 • Public • Published

cancellable-next-tick

Wrapper around process.nextTick returning a cancel function

build status dependencies dev-dependencies

npm

example usage

    var cancellableNextTick = require('cancellable-next-tick');
    var cancel = cancellableNextTick(function(){
        // execution never reaches here
    });
    cancel();

example use case

Check out this example

changelog

1.0.3

  • Enhanced model example
  • Added standard badges & shields

1.0.2

  • Added 'model' example as use-case example

1.0.1

  • Enhanced readme
  • Enhanced package.json

Install

npm i cancellable-next-tick

DownloadsWeekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar