- worker.on('message', () => { });
- worker.on('error', () => { });
+ worker.on('message', (msg) => {
+ (async () => {
+ await this.messageHandler(msg);
+ })().catch(() => { /* This is intentional */ });
+ });
+ worker.on('error', () => { /* This is intentional */ });