Optional
options: ConstructorOptionsOptional
options: ListenToOptionsOptional
options: ListenToOptionsOptional
options: ListenToOptionsAdds a listener that will execute n times for the event before being removed. The listener is invoked only the first n times the event is fired, after which it is removed.
Adds a listener that will execute n times for the event before being removed. The listener is invoked only the first n times the event is fired, after which it is removed.
Remove a listener from the listener array for the specified event. Caution: Calling this method changes the array indices in the listener array behind the listener.
Adds a listener to the end of the listeners array for the specified event.
Adds a listener to the end of the listeners array for the specified event.
Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
Adds a listener to the beginning of the listeners array for the specified event.
Adds a listener to the beginning of the listeners array for the specified event.
Adds a listener that will execute n times for the event before being removed. The listener is invoked only the first n times the event is fired, after which it is removed. The listener is added to the beginning of the listeners array.
Adds a listener that will execute n times for the event before being removed. The listener is invoked only the first n times the event is fired, after which it is removed. The listener is added to the beginning of the listeners array.
Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed. The listener is added to the beginning of the listeners array
Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed. The listener is added to the beginning of the listeners array
Remove a listener from the listener array for the specified event. Caution: Calling this method changes the array indices in the listener array behind the listener.
By default EventEmitters will print a warning if more than 10 listeners are added to it. This is a useful default which helps finding memory leaks. Obviously not all Emitters should be limited to 10. This function allows that to be increased. Set to zero for unlimited.
Returns a thenable object (promise interface) that resolves when a specific event occurs
Optional
timeout: numberReturns a thenable object (promise interface) that resolves when a specific event occurs
Optional
filter: WaitForFilterReturns a thenable object (promise interface) that resolves when a specific event occurs
Optional
options: WaitForOptionsStatic
once
Adds a listener to the end of the listeners array for the specified event.