From a5c1436136a96e8b67f845de96101f686afc7c12 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Thu, 10 Sep 2020 01:15:30 +0300 Subject: [PATCH] Updated README.md; --- jsdoc2md/README.hbs.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/jsdoc2md/README.hbs.md b/jsdoc2md/README.hbs.md index ac68ade..b5d8f4b 100644 --- a/jsdoc2md/README.hbs.md +++ b/jsdoc2md/README.hbs.md @@ -43,23 +43,20 @@ $ yarn add c-promise2 - [production UMD version](https://unpkg.com/c-promise2@0.1.0/dist/c-promise.umd.js) (or [minified](https://unpkg.com/c-promise2@0.1.0/dist/c-promise.umd.min.js) ~9KB) - - - [production CommonJS version](https://unpkg.com/c-promise2@0.1.0/dist/c-promise.cjs.js) - [production ESM version](https://unpkg.com/c-promise2@0.1.0/dist/c-promise.mjs) ## Features / Advantages -- there are no any dependencies (except [native] Promise), browser support -- cancellation sequence -- supports cancellation of the whole chain - rejects the deepest pending promise in the chain +- there are no any dependencies (except [native] Promise) +- browser support +- :fire: supports cancellation of the whole chain - rejects the deepest pending promise in the chain - supports onCancel event handler to abort some internal work (clear timers, close requests etc.) - supports built-in signal interface for API that supports it (like fetch method) -- proper handling of manually throwing of the `CanceledError` by the chain -- progress capturing to handle progress of the chain, useful for long-term operations +- proper handling of `CanceledError` errors manually thrown inside the chain +- :fire: progress capturing with result scaling to handle progress of the whole chain (including nested promise chains), useful for long-term operations - ability to install the `weight` for each promise in the chain - ability to attach meta info on each setting of the progress -- supports capturing progress and scaling the result of the internal promise chain returned by the `then` method - the `delay` method to return promise that will be resolved with the value after timeout - static methods `all`, `race` support cancellation and will cancel all other pending promises after they resolved - the `catch` method supports error class filtering