removeAllListeners()
#
Available since 2.9.0
Unregisters all listeners from an event.
removeAllListeners (event: string): Promise<void>
Argument | Type | Description |
---|---|---|
event | string | Event name |
Usage #
app.cluster.removeAllListeners('some:event');
Edit this page on Github (opens new window)