aboutsummaryrefslogtreecommitdiff
path: root/docs/api/workers.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api/workers.md')
-rw-r--r--docs/api/workers.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api/workers.md b/docs/api/workers.md
index 417b77148..1a4a09965 100644
--- a/docs/api/workers.md
+++ b/docs/api/workers.md
@@ -123,7 +123,7 @@ By default, an active `Worker` will keep the main (spawning) process alive, so a
### `worker.unref()`
-To stop a running worker from keeping the process alive, call `worker.unref()`. This decouples the lifetime of the worker to the lifetime of the main process, and is equivlent to what Node.js' `worker_threads` does.
+To stop a running worker from keeping the process alive, call `worker.unref()`. This decouples the lifetime of the worker to the lifetime of the main process, and is equivalent to what Node.js' `worker_threads` does.
```ts
const worker = new Worker(new URL("worker.ts", import.meta.url).href);