Skip to content

DanielHerr/Async_Iterable_Events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

On

Improves events with multiple registration, retrievable listeners, easier removal, and single run support.

Usage:

target.on("event", function(event) { })
target.listeners.event[0](new Event("event"))
target.listeners.event[0].remove()
target.on("event", function(event) { }).remove()
target.on([ "event1", "event2" ], function(event) { })
target.on("event", { once: true }, function(event) { })
target.on("event", { once: true }).then(function(event) { })

Run Tests

About

Converts events to async iterators and promises.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published