https://github.com/zenflow/cancellable-next-tick
Wrapper around process.nextTick returning a cancel function
https://github.com/zenflow/cancellable-next-tick
Last synced: about 1 year ago
JSON representation
Wrapper around process.nextTick returning a cancel function
- Host: GitHub
- URL: https://github.com/zenflow/cancellable-next-tick
- Owner: zenflow
- License: mit
- Created: 2015-05-20T10:04:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-30T16:27:46.000Z (about 11 years ago)
- Last Synced: 2025-03-13T20:48:34.858Z (over 1 year ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cancellable-next-tick
Wrapper around process.nextTick returning a cancel function
[](https://travis-ci.org/zenflow/cancellable-next-tick?branch=master)
[](https://david-dm.org/zenflow/cancellable-next-tick)
[](https://david-dm.org/zenflow/cancellable-next-tick#info=devDependencies)
[](https://www.npmjs.com/package/cancellable-next-tick)
## example usage
```js
var cancellableNextTick = require('cancellable-next-tick');
var cancel = cancellableNextTick(function(){
// execution never reaches here
});
cancel();
```
## example use case
Check out [this example](https://github.com/zenflow/cancellable-next-tick/tree/master/examples/model)
## 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