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 a8ffbcd commit 514262cCopy full SHA for 514262c
doc/api/worker_threads.md
@@ -1852,14 +1852,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
1852
added: REPLACEME
1853
-->
1854
1855
-Calls [`worker.terminate()`][] when the dispose scope is exited.
1856
-
1857
-```js
1858
-async function example() {
1859
- await using worker = new Worker('for (;;) {}', { eval: true });
1860
- // Worker is automatically terminate when the scope is exited.
1861
-}
1862
-```
+Alias for [`worker.terminate()`][].
1863
1864
## Notes
1865
0 commit comments