diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-30 16:09:32 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-30 16:09:32 +0530 |
commit | aaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf (patch) | |
tree | 9274139660f30c4857d80044eb4ac283aac1775a /src/util/asyncMemo.ts | |
parent | 15e18440dbad55df19977a2eb7053681259afc18 (diff) | |
download | wallet-core-aaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf.tar.xz |
re-format with prettier v2, fix HTML
Diffstat (limited to 'src/util/asyncMemo.ts')
-rw-r--r-- | src/util/asyncMemo.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util/asyncMemo.ts b/src/util/asyncMemo.ts index 17204a88e..84fe6b802 100644 --- a/src/util/asyncMemo.ts +++ b/src/util/asyncMemo.ts @@ -40,9 +40,9 @@ export class AsyncOpMemoMap<T> { // Wrap the operation in case it immediately throws const p = Promise.resolve().then(() => pg()); this.memoMap[key] = { - p, - n, - t: new Date().getTime(), + p, + n, + t: new Date().getTime(), }; return p.finally(() => { this.cleanUp(key, n); @@ -53,7 +53,6 @@ export class AsyncOpMemoMap<T> { } } - export class AsyncOpMemoSingle<T> { private n = 0; private memoEntry: MemoEntry<T> | undefined; |