io.justdevit.kotlin.boost.eventbus.EventPublisher.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boost-eventbus Show documentation
Show all versions of boost-eventbus Show documentation
Library to boost working with Kotlin/JVM projects.
The newest version!
package io.justdevit.kotlin.boost.eventbus
/**
* Interface representing an object capable of publishing events to an event bus system.
*/
interface EventPublisher {
/**
* Publishes one or more events to the event bus system.
*
* @param events Events to be published.
*/
fun publish(vararg events: Event)
/**
* Publishes one or more events to the event bus system.
*
* @param events Events to be published.
*/
suspend fun coPublish(vararg events: Event)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy