UNPKG

prutill

Version:

Environment-agnostic production-ready promise utility library for managing promise stacks and race conditions. Supports Node.js, Deno, and browsers.

2 lines 282 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class TimedPromise{constructor(e=0,s){this.promise=new Promise((t=>{setTimeout((()=>{t(s)}),e)}))}then(e){return this.promise.then((s=>e(s)))}}exports.default=TimedPromise; //# sourceMappingURL=timedPromise.cjs.map