You've written this pattern — or something close to it — many times:
const timer = setTimeout(flush, 5000);
try {
await doWork();
} finally {
clearTimeout(timer);
}
The cleanup is real and necessary. But it's twelve lines away from the allocation, and every time the function grows — another early return, another throw path — you have...
🛡️ VERIFIED CYBER INTELLIGENCE ID: #3662900