Skip to content

Commit ab6ddc0

Browse files
SerayaErynvsemozhetbyt
authored andcommitted
doc: add callback parameters of worker.terminate()
PR-URL: #23002 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 50944f3 commit ab6ddc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/worker_threads.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ added: v10.5.0
427427
-->
428428

429429
* `callback` {Function}
430+
* `err` {Error}
431+
* `exitCode` {integer}
430432

431433
Stop all JavaScript execution in the worker thread as soon as possible.
432434
`callback` is an optional function that is invoked once this operation is known

0 commit comments

Comments
 (0)