npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

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

8

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability