FOSS software contributed by ALTOVISO (http://www.altoviso.com).
- Constructor includes optional timeout argument (in ms) to say the promise should cancel after that time has expired, e.g.:
let p = new Promise(500, executor);
-
resolve(result),reject(error), andcancel(reason)methods -
resolved,rejected, andcanceledgetters -
result,error, andcancelReasongetters
With npm:
npm install bd-promise
With yarn:
yarn add bd-promise
With bower:
bower install --save bd-promise
Serve the root directory then point a browser to test/index.html.
bd-promise is free and open source software available under a BSD-3-Clause license.