diff options
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r-- | doc/api/worker_threads.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 37751c21bb..b73787174c 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -154,8 +154,8 @@ added: v10.5.0 --> Disables further sending of messages on either side of the connection. -This method can be called once you know that no further communication -will happen over this `MessagePort`. +This method can be called when no further communication will happen over this +`MessagePort`. ### port.postMessage(value[, transferList]) <!-- YAML @@ -436,9 +436,9 @@ to have completed. **Warning**: Currently, not all code in the internals of Node.js is prepared to expect termination at arbitrary points in time and may crash if it encounters -that condition. Consequently, you should currently only call `.terminate()` if -it is known that the Worker thread is not accessing Node.js core modules other -than what is exposed in the `worker` module. +that condition. Consequently, only call `.terminate()` if it is known that the +Worker thread is not accessing Node.js core modules other than what is exposed +in the `worker` module. ### worker.threadId <!-- YAML |