MCPcopy
hub / github.com/DHTMLX/gantt / DelayedFunction

Interface DelayedFunction

src/utils/helpers.ts:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165interface DelayedFunction<T extends (...args: any[]) => unknown> {
166 (...args: Parameters<T>): void;
167 $pending: boolean;
168 $cancelTimeout: () => void;
169 $execute: (...args: Parameters<T>) => void;
170}
171
172function delay<T extends (...args: any[]) => unknown>(callback: T, timeout: number): DelayedFunction<T> {
173 let timer: ReturnType<typeof setTimeout> | undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected