mycoder
Version:
A command line tool using agent that can do arbitrary tasks, including coding tasks
11 lines • 358 B
JavaScript
/**
* Force exits the process after a timeout
* This is a failsafe to ensure the process exits even if there are lingering handles
*/
export function setupForceExit(timeoutMs = 5000) {
setTimeout(() => {
console.log(`Forcing exit after ${timeoutMs}ms timeout`);
process.exit(0);
}, timeoutMs);
}
//# sourceMappingURL=cleanup.js.map