Signal2

class Signal2<T1, T2>(onRegister: () -> Unit = {}) : BaseSignal2<T1, T2>

Constructors

Link copied to clipboard
constructor(onRegister: () -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard
val onRegister: () -> Unit

Functions

Link copied to clipboard
fun add(handler: (T1, T2) -> Unit): Closeable
Link copied to clipboard
fun clear()
Link copied to clipboard
operator fun invoke(handler: (T1, T2) -> Unit): Closeable
operator fun invoke(value1: T1, value2: T2)
Link copied to clipboard
suspend fun listen(): ReceiveChannel<Pair<T1, T2>>
Link copied to clipboard
fun once(handler: (T1, T2) -> Unit): Closeable
Link copied to clipboard
suspend fun <T1, T2> Signal2<T1, T2>.waitOne(): Pair<T1, T2>
Link copied to clipboard
open suspend override fun waitOneBase(): Pair<T1, T2>