Investigate whether memory usage can be reduced by not caching Promise objects
Abierto
good first issue
- Lenguaje dominante
- TypeScript
- Estrellas
- 38
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción

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() {}
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.