(private behavior: (m: ParseMsg) => Action, private onTerminate?: () => void)
| 32 | private exitCb?: (code: number) => void; |
| 33 | alive = true; |
| 34 | constructor(private behavior: (m: ParseMsg) => Action, private onTerminate?: () => void) {} |
| 35 | on(event: string, cb: (...args: any[]) => void): void { |
| 36 | if (event === 'message') this.msgCb = cb; |
| 37 | else if (event === 'exit') this.exitCb = cb; |
nothing calls this directly
no outgoing calls
no test coverage detected