We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53130ea commit cafae5dCopy full SHA for cafae5d
src/worker_pool/index.ts
@@ -121,6 +121,7 @@ export class WorkerInfo extends AsynchronouslyCreatedResource {
121
};
122
123
try {
124
+ this.clearIdleTimeout();
125
this.port.postMessage(message, taskInfo.transferList);
126
} catch (err) {
127
// This would mostly happen if e.g. message contains unserializable data
@@ -132,7 +133,6 @@ export class WorkerInfo extends AsynchronouslyCreatedResource {
132
133
taskInfo.workerInfo = this;
134
this.taskInfos.set(taskInfo.taskId, taskInfo);
135
this.ref();
- this.clearIdleTimeout();
136
137
// Inform the worker that there are new messages posted, and wake it up
138
// if it is waiting for one.
0 commit comments