MCPcopy
hub / github.com/argoproj/argo-workflows / cancel

Function cancel

ui/src/shared/debounce.ts:4–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2 let timer: number | null = null;
3
4 const cancel = () => {
5 if (timer !== null) {
6 clearTimeout(timer);
7 timer = null;
8 }
9 };
10
11 const debouncedFn = (...args: Parameters<T>) => {
12 cancel();

Calls

no outgoing calls

Tested by 15

TestWatchWorkflowsFunction · 0.68
TestWatchLatestWorkflowFunction · 0.68
TestPodLogsFunction · 0.68
TestPrometheusServerFunction · 0.68
TestUpdateConfigFunction · 0.68
TestWorkflowTemplateRefFunction · 0.68