Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cancellable-next-tick

zenflow19MIT1.0.3

Wrapper around process.nextTick returning a cancel function

nextTick, next, tick, wrap, wrapper, cancel, cancellable, cancelling, clear, clearable, clearing, micro

readme

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