From 24073cef6b30849e7ababc3ea92793b3d1b4dd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20F=C3=A4cke?= Date: Fri, 21 Sep 2018 18:26:27 +0200 Subject: [PATCH] doc: add callback parameters of worker.terminate() PR-URL: https://github.com/nodejs/node/pull/23002 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- doc/api/worker_threads.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index b9f28cbfbe411b..37751c21bbb44d 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -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