0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00

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:
Denis Fäcke 2018-09-21 18:26:27 +02:00 committed by Vse Mozhet Byt
parent 50944f34fe
commit ab6ddc0634

View File

@ -427,6 +427,8 @@ added: v10.5.0
-->
* `callback` {Function}
* `err` {Error}
* `exitCode` {integer}
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