emitter.tl

A small, strongly typed event emitter library for Lua and typed with Teal

$ luarocks install emitter.tl

* Designed around strongly typed events using Teal. Events are no longer just
strings and bags of data.
* Allows for decoupling logic by subscribing and unsubscribing to events.
* Support for receiving an event at most once.
* Can efficiently forward all events from an Emitter to another Emitter.
This is great for things like games that have global events and listeners
that should only persist for the lifetime of a specific emitter.
* Listeners can be added or removed while emitting, and removals take effect
immediately.

Versions

0.1.0-11 day ago2 downloads

Dependencies

lua >= 5.1

Labels

Manifests