audreyt / node-webworker-threads

Lightweight Web Worker API implementation with native threads
https://npmjs.org/package/webworker-threads
Other
2.3k stars 149 forks source link

DOCS Tweak description of threadPool.on #127

Closed davisjam closed 8 years ago

davisjam commented 8 years ago

Previous description: "...is like thread.on(), registers listeners for events from any of the threads in the pool."

Problem: This makes it sound like the threads will emit events and that the threadPool will listen for them.

The actual behavior is to call thread.on() for each thread in the pool.

Solution: Update the README to reflect this.