Package loggersoft.kotlin.utils.event

Types

Link copied to clipboard
typealias Receiver<S, E> = (sender: S, event: E) -> Unit

A receiver of the event.

Link copied to clipboard
interface Signal<S : Any, E : Any>

Represents interface of a signal for using inside sender object.

Link copied to clipboard
class SignalImpl<S : Any, E : Any>(val sender: S) : Signal<S, E>

Default implementation of Signal and Subscription interfaces.

Link copied to clipboard
interface Subscription<out S : Any, out E : Any>

Represents interface for subscription on an event.