Sitelet https://github.com/nodejs/node/pull/47039/commits/a216477d501a4e0f98a994fcc31d4129916e2e30
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: add note about warning
  • Loading branch information
KhafraDev committed Mar 15, 2023
commit a216477d501a4e0f98a994fcc31d4129916e2e30
3 changes: 2 additions & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,8 @@ For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners`
the emitter.

For `EventTarget`s this is the only way to get the max event listeners for the
Comment thread
KhafraDev marked this conversation as resolved.
event target.
event target. If the number of event handlers on a single EventTarget exceeds the
Comment thread
KhafraDev marked this conversation as resolved.
Outdated
max set, the EventTarget will print a warning.

```mjs
import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
Expand Down