fromEventPattern
Last updated
Was this helpful?
Last updated
Was this helpful?
Creates an observable sequence by using the addHandler and removeHandler functions to add and remove the handlers, with an optional selector function to project the event arguments.
addHandler
(Function
): The DOMElement, NodeList or EventEmitter to attach a listener.
removeHandler
(Function
): The optional function to remove a handler from an emitter.
[selector]
(Function
): A selector which takes the arguments from the event handler to produce a single item to yield on next.
(Observable
): An observable sequence of events from the specified element and the specified event.
Wrapping an event from
Wrapping an event from the
Using in Node.js with using an EventEmitter
.