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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
SerayaEryn authored and vsemozhetbyt committed Sep 24, 2018
1 parent 50944f3 commit ab6ddc0
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 ab6ddc0

Please sign in to comment.