Commit 775c01e3 authored by Jason Karns's avatar Jason Karns Committed by Roman Reiss
Browse files

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: https://github.com/nodejs/node/pull/2559


Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatartargos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: default avatarBrendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
parent 048c8f2c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment