Core
Framework v2.x
2

removeAllListeners() #

Available since 2.9.0
Experimental: non-backward compatible changes or removal may occur in any future release.

Unregisters all listeners from an event.

Copied to clipboard!
removeAllListeners (event: string): Promise<void>

Argument Type Description
event
string
Event name

Usage #

Copied to clipboard!
app.cluster.removeAllListeners('some:event');