doc: add class worker documentation

Add documentation about Worker class inherits from EventEmitter.

PR-URL: https://github.com/nodejs/node/pull/24849
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
pull/24975/head
yoshimoto koki 2018-12-05 21:31:01 +09:00 committed by Vse Mozhet Byt
parent 91c1f8a79b
commit 9fc0b7bdc8
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ listeners for the event exist.
added: v10.5.0
-->
* Extends: {EventEmitter}
The `Worker` class represents an independent JavaScript execution thread.
Most Node.js APIs are available inside of it.