mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
use plimit + delay for k8s watch requests
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
03794e6c38
commit
b1fac0d727
3 files changed
+24
-32
No files matched your search
@@ -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));
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user