Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0cfc6d3

Browse filesBrowse files
jasonkarnsjasnell
authored andcommitted
doc: recommend Infinity on emitter.setMaxListeners
Instead of recommending `0` as the magic value to set max listeners to unlimited, recommend `Infinity`. This paves the way for `0` as a magic value eventually being deprecated and finally removed. PR-URL: #2559 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent 589287b commit 0cfc6d3
Copy full SHA for 0cfc6d3

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/events.markdown‎

Copy file name to clipboardExpand all lines: doc/api/events.markdown
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Returns emitter, so calls can be chained.
9292
By default EventEmitters will print a warning if more than 10 listeners are
9393
added for a particular event. This is a useful default which helps finding
9494
memory leaks. Obviously not all Emitters should be limited to 10. This function
95-
allows that to be increased. Set to zero for unlimited.
95+
allows that to be increased. Set to `Infinity` (or `0`) for unlimited.
9696

9797
Returns emitter, so calls can be chained.
9898

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.