Investigate whether memory usage can be reduced by not caching Promise objects
Đang mở
good first issue
- Ngôn ngữ chính
- TypeScript
- Star
- 38
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả

My strategy would be to wrap cached promises with a new `CachedPromise` class.
```ts
class CachedPromise {
constructor(promise) {
this.promise = promise
promise.then((result) => {
this.result = result
this.promise = null
}, (error) => {
this.error = error
this.promise = null
})
}
then() {}
catch() {}
finally() {}
}
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.