It provides a high-performance in-process event dispatcher for Go, allowing decoupled modules and asynchronous event handling.
It supports both synchronous and asynchronous processing with generic event types implementing an Event interface.
It processes millions of events per second, outperforming Go channels by 4x to 10x in benchmarks.
Each subscriber runs in its own goroutine for non-blocking event handling.
It offers simple, dependency-free pub/sub patterns within a single Go process.
It is not designed for inter-process communication, persistence, or advanced routing and filtering.
It includes a default global dispatcher usable via On() and Emit(), as well as generic Publish[T]() and Subscribe[T]() functions.
Get notified when new stories are published for "General AI News"