![]() PrependMany(event: event | eventNS, timesToListen: number, listener: ListenerFn, boolean|options?: object): this|Listener Many(event: event | eventNS, timesToListen: number, listener: ListenerFn, boolean|options?: object): this|Listener Once(event: event | eventNS, listener: ListenerFn, boolean|options?: object): this|Listener On(event: event | eventNS, listener: ListenerFn, boolean|options?: object): this|Listener values: any): PromiseĪddListener(event: event | eventNS, listener: ListenerFn, boolean|options?: object): this|Listener values: any): boolean ĮmitAsync(event: event | eventNS. Or you can use CDN to import this module as a script directly from the browser API Types definitionĮmit(event: event | eventNS. Demonstrates good performance in benchmarks.Browser & Workers environment compatibility.Extended version of the events.once method from the node events API.Feature-rich waitFor method to wait for events using promisesįor listening to an external event emitter of any kind and propagate its events through itself using optional reducers/filters.Listener object that makes it easy to remove the subscription when needed - just call the listener.off() method. Subscription methods ( on, once, many.The emitAsync method to return the results of the listeners via Promise.all.Async listeners (using setImmediate|setTimeout|nextTick) with promise|async function support.Times To Listen (TTL), extends the once concept with many.ES5 compatible UMD module, that supports node.js, browser and workers of any kind. ![]() If you like this project please show your support with a GitHub ⭐! DESCRIPTION FEATURES It also extends the interface of EventEmitter with many additional non-breaking features. In addition to having a better benchmark performance than EventEmitter and being browser-compatible, EventEmitter2 is an implementation of the EventEmitter module found in Node.js. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |