@meleon/uni-ui
Version:
A uniapp components library written in vue3 and typescript
1 lines • 222 B
JavaScript
export class AbortablePromise{constructor(t){this.promise=new Promise(((e,r)=>{t(e,r),this._reject=r}))}abort(t){this._reject&&this._reject(t)}then(t,e){return this.promise.then(t,e)}catch(t){return this.promise.catch(t)}}