mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: fix "task_processor.js" typo
PR-URL: https://github.com/nodejs/node/pull/45257 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
a186a4d7ef
commit
2bfd60b06f
1 file changed
+1
-1
@@ -593,7 +593,7 @@ export default class WorkerPool extends EventEmitter {
|
||||
}
|
||||
|
||||
addNewWorker() {
|
||||
const worker = new Worker(new URL('task_processer.js', import.meta.url));
|
||||
const worker = new Worker(new URL('task_processor.js', import.meta.url));
|
||||
worker.on('message', (result) => {
|
||||
// In case of success: Call the callback that was passed to `runTask`,
|
||||
// remove the `TaskInfo` associated with the Worker, and mark it as free
|
||||
|
||||
Reference in new issue
Block a user