Event

interface Event<T : JsAny?>(source)

Represents a typed event.

A function that represents an event to which you subscribe by calling it with a listener function as argument.

Functions

Link copied to clipboard
abstract operator fun invoke(listener: (e: T) -> Unit): Disposable

A function that represents an event to which you subscribe by calling it with a listener function as argument.