Package-level declarations

Types

Link copied to clipboard
expect class Event<T>(name: String = "<unnamed-event>", postpone: Boolean = false)
actual class Event<T>(val name: String, val postpone: Boolean)
actual class Event<T>(val name: String, var postpone: Boolean)

an event class

Functions

Link copied to clipboard
fun <T : Any> Iterable<Event<T>>.listen(listener: (T) -> Unit): (T) -> Unit

add listener to Iterable of Event entries