use plimit + delay for k8s watch requests

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-01-26 15:26:07 +02:00
1 parent 03794e6c38
commit b1fac0d727
3 files changed
+24 -32

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
// Create async delay for provided timeout in milliseconds
export async function delay(timeoutMs = 1000) {
if (!timeoutMs) return;
await new Promise(resolve => setTimeout(resolve, timeoutMs));
}
+1
View File
@@ -7,6 +7,7 @@ export * from "./autobind";
export * from "./base64";
export * from "./camelCase";
export * from "./cloneJson";
export * from "./delay";
export * from "./debouncePromise";
export * from "./defineGlobal";
export * from "./getRandId";