Lightweight native promise wrapper that can be cancelled. Has no dependencies on other libraries.
npm i @0x2e757/promise-ext
PromiseExt mostly will by used same as regular
How to import
import PromiseExt from "@0x2e757/promise-ext";
timeout — wrapper around resolver using
cancel — function for preventing promise or its chain actions execution;
Unique static functions
wrap — creates wrapper for provided promise;
all function will cancel all cancellable promises if any of them will fail.