From d6fc173a5bce3dd38f00bfafc3cd66592d6e3c9b Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 25 May 2020 16:22:05 +0000 Subject: [PATCH] fix(core): update --- ts/domtools.classes.domtools.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts/domtools.classes.domtools.ts b/ts/domtools.classes.domtools.ts index c7e8c60..cfe36cc 100644 --- a/ts/domtools.classes.domtools.ts +++ b/ts/domtools.classes.domtools.ts @@ -49,6 +49,11 @@ export class DomTools { private runOnceTrackerStringMap = new Stringmap(); private runOnceResultMap = new FastMap(); + /** + * run a function once and always get the Promise of the first execution + * @param identifierArg + * @param funcArg + */ public async runOnce(identifierArg: string, funcArg: () => Promise) { const runningId = `${identifierArg}+runningCheck`; if(!this.runOnceTrackerStringMap.checkString(identifierArg)) {