Skip to content

Commit

Permalink
doc: add callback parameters of worker.terminate()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SerayaEryn authored and targos committed Sep 25, 2018
1 parent 6b2e2ff commit 24073ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24073ce

Please sign in to comment.