Event Library - A lightweight, zero boilerplate, high performance event bus for JVM
github.com·1d
🛑Async Cancellation
Preview
Report Post

Event Library

A lightweight, reflection‑assisted but LambdaMetafactory‑accelerated event bus for Kotlin and the JVM. This library focuses on simplicity, performance, and zero boilerplate, while supporting:

  • Private, protected, internal, or public handler methods
  • Handler prioritization
  • Cancelable and modifiable events
  • Weak subscriber references (automatic cleanup)
  • Polymorphic dispatch (handlers for supertype events receive subtype events)
  • High‑performance invocation using LambdaMetafactory, with reflective fallback
  • Static handlers for both events and exceptions
  • Typed, prioritized exception handling via @ExceptionHandler

✨ Features

🔍 Automatic Handler Discovery

Any method annotated with @EventHandler and accepting exactly one Event

Similar Posts

Loading similar posts...