1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

ref PR for mem leak explanation

This commit is contained in:
Kyle Spearrin
2018-07-23 15:46:59 -04:00
parent 70a0044ac5
commit 0b2fab43d5

View File

@@ -7,6 +7,7 @@
* Results are not cached, once the promise has returned, the next call will result in a fresh call * Results are not cached, once the promise has returned, the next call will result in a fresh call
* *
* WARNING: The decorator's scope is singleton, so using it on transient objects can lead to memory leaks. * WARNING: The decorator's scope is singleton, so using it on transient objects can lead to memory leaks.
* Read more at https://github.com/bitwarden/jslib/pull/7
*/ */
export function sequentialize(cacheKey: (args: any[]) => string) { export function sequentialize(cacheKey: (args: any[]) => string) {
return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => { return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {