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 Feb 12, 2019
1 parent f68ff06 commit f8ac170
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 f8ac170

Please sign in to comment.