Package-level declarations

Types

Link copied to clipboard
actual class Event<T>(val name: String, var postpone: Boolean) : AutoCloseable

an event class

expect class Event<T>(name: String = "<unnamed-event>", postpone: Boolean = false) : AutoCloseable
actual class Event<T>(val name: String, val postpone: Boolean) : AutoCloseable

Functions

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

add listener to Iterable of Event entries