Name used in log + error messages.
The promise to race against the timer.
Budget in ms; <= 0 or non-finite disables.
OptionalonTimeoutEvict: (worker: Worker, reason: string) => void
Optional callback fired on timeout with the
(worker, reason) pair the pool's handleWorkerFailure expects.
Omitted when the caller can't identify the responsible worker.
Optionalworker: Worker
Optional handle on the responsible worker; passed
through to onTimeoutEvict only.
Race
callagainst atimeoutMs-budget timer. Returns the call's result on success, rejects with WorkerTimeoutError on timeout, and skips the race entirely whentimeoutMs <= 0or is non-finite (acts as a transparent pass-through for callers that still want the uniform call shape).