mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
added memory leak warning
This commit is contained in:
parent
d07ee4c01b
commit
70a0044ac5
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user