cancelable-group
Create groups of callbacks that can be canceled in one go.
Think FGRibreau/cancelable for groups or substack/node-toss without timeouts and the extra stuff. This module is focused on one thing.
Example
var cancelableGroup = ; var group = ; ; ; );
API
group = cancelableGroup()
Creates new cancelable group.
group(func)
Returns a wrapper function that is equivalent to func
unless the group is canceled. Then it becomes a no-op.
group()
group.cancel()
Cancels the group.
Install
npm install cancelable-group
License
MIT