Update workers.md

This commit is contained in:
Jarred Sumner
2025-09-29 23:08:03 -07:00
parent b5a56c183b
commit 9c2590ca07

View File

@@ -302,7 +302,7 @@ console.log(config); // => { apiUrl: "https://api.example.com" }
Listen for worker creation events using `process.emit()`:
```js
process.on("worker", (worker) => {
process.on("worker", worker => {
console.log("New worker created:", worker.threadId);
});
```