Skip to content

Commit

Permalink
doc: add class worker documentation
Browse files Browse the repository at this point in the history
Add documentation about Worker class inherits from EventEmitter.

PR-URL: #24849
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
yoshimoto8 authored and BethGriggs committed Dec 17, 2018
1 parent 08c6b21 commit 9bfbb68
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 @@ -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.

Expand Down

0 comments on commit 9bfbb68

Please sign in to comment.