From b5ee6b7b4ee506712f51e1b90e9256c4b0c0c603 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 2 Dec 2019 17:35:47 +0100 Subject: pending operations WIP --- src/util/asyncMemo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/asyncMemo.ts') diff --git a/src/util/asyncMemo.ts b/src/util/asyncMemo.ts index 8b7b1c9bb..34868ab4f 100644 --- a/src/util/asyncMemo.ts +++ b/src/util/asyncMemo.ts @@ -21,8 +21,8 @@ export interface MemoEntry { } export class AsyncOpMemo { - n = 0; - memo: { [k: string]: MemoEntry } = {}; + private n = 0; + private memo: { [k: string]: MemoEntry } = {}; put(key: string, p: Promise): Promise { const n = this.n++; this.memo[key] = { -- cgit v1.2.3