Sign in Sign up
npm

easy-cancelable-promise

CancelablePromise is a Promise that can be canceled. It is a Promise that has a status property that can be '`pending`', '`resolved`', '`rejected`' or '`canceled`'. It has an onCancel method that allows you to register a callback that will be called when the promise is canceled. It has a cancel method that allows you to cancel the promise.

Activity

Latest release
3w ago
Total releases
12
Cadence
~daily
Last 12 months
8

Reach

Downloads (recent)
869
Stars
0

Details

License
MIT
First release
Sep 27, 2024
Releases
Version Released
3.0.1 patch
3.0.0 major
3.0.0-beta.3 pre
3.0.0-beta.2 pre
3.0.0-beta.1 pre
3.0.0-beta.0 pre
2.0.1 patch
2.0.0 major
1.0.3 patch
1.0.2 patch
1.0.1 patch
1.0.0 initial