added atExit

This commit is contained in:
Olivier Gagnon
2021-10-14 20:13:26 -04:00
parent fe6473f426
commit 3fddb3c9f2
7 changed files with 55 additions and 14 deletions

View File

@@ -106,6 +106,11 @@ export class WorkerScript {
*/
hostname: string;
/**
* Function called when the script ends.
*/
atExit: any;
constructor(runningScriptObj: RunningScript, pid: number, nsFuncsGenerator?: (ws: WorkerScript) => any) {
this.name = runningScriptObj.filename;
this.hostname = runningScriptObj.server;