Executes a function as soon as the interpreter is idle (stack empty).
Generic over the target function's tail-args tuple so call sites pass
the function's actual parameters without lying to TypeScript via
as unknown as (...args: unknown[]) => unknown casts. The compiler
infers TArgs from the trailing rest args and constrains func to
accept them.
Executes a function as soon as the interpreter is idle (stack empty).
Generic over the target function's tail-args tuple so call sites pass the function's actual parameters without lying to TypeScript via
as unknown as (...args: unknown[]) => unknowncasts. The compiler infersTArgsfrom the trailing rest args and constrainsfuncto accept them.