1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

added memory leak warning

This commit is contained in:
Kyle Spearrin 2018-07-23 15:41:54 -04:00
parent d07ee4c01b
commit 70a0044ac5

View File

@ -5,6 +5,8 @@
* be returned, instead of calling the original function again
*
* 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.
*/
export function sequentialize(cacheKey: (args: any[]) => string) {
return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {