MISC: change all nextUpdates to use one Promise (#1069)

This commit is contained in:
Caldwell
2024-02-10 12:27:47 +01:00
committed by GitHub
parent fbc41d0278
commit 8c2a23f2ba
10 changed files with 59 additions and 39 deletions
+5
View File
@@ -0,0 +1,5 @@
// An object that contains a promise and its resolver (or possibly null)
export type PromisePair<ReturnType> = {
promise: Promise<ReturnType> | null;
resolve: ((value: ReturnType) => void) | null;
};