Skip to content

GolemOrg/Events

Repository files navigation

Events

A small event bus system used as a way to push/pull data from a central location.

Usage

Using the event system is as simple as:

val bus = EventBus<Int>()

bus.listen {
    println("Received number: $it")
}

for(i in 1..100) {
    bus.dispatch(i)
}

About

A small event system created using an event bus system

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages