doc: add callback parameters of worker.terminate()
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
50944f34fe
commit
ab6ddc0634
@ -427,6 +427,8 @@ added: v10.5.0
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
* `callback` {Function}
|
* `callback` {Function}
|
||||||
|
* `err` {Error}
|
||||||
|
* `exitCode` {integer}
|
||||||
|
|
||||||
Stop all JavaScript execution in the worker thread as soon as possible.
|
Stop all JavaScript execution in the worker thread as soon as possible.
|
||||||
`callback` is an optional function that is invoked once this operation is known
|
`callback` is an optional function that is invoked once this operation is known
|
||||||
|
Loading…
x
Reference in New Issue
Block a user