event
event copied to clipboard
add wait method
Adds a method to EventEmitter called wait
that awaits the completion of each listener. Note: awaiting this method does not work the same way as awaiting emit
.