Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
ref PR for mem leak explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jul 23, 2018
1 parent 70a0044 commit 0b2fab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/misc/sequentialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* 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.
* Read more at https://github.com/bitwarden/jslib/pull/7
*/
export function sequentialize(cacheKey: (args: any[]) => string) {
return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {
Expand Down

0 comments on commit 0b2fab4

Please sign in to comment.