toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.async
/
Signal2
Signal2
class
Signal2
<
T1
,
T2
>
(
onRegister
:
(
)
->
Unit
=
{}
)
:
BaseSignal2
<
T1
,
T2
>
Members
Members & Extensions
Constructors
Signal2
Link copied to clipboard
constructor
(
onRegister
:
(
)
->
Unit
=
{}
)
Properties
listener
Count
Link copied to clipboard
val
listenerCount
:
Int
on
Register
Link copied to clipboard
val
onRegister
:
(
)
->
Unit
Functions
add
Link copied to clipboard
fun
add
(
handler
:
(
T1
,
T2
)
->
Unit
)
:
Closeable
clear
Link copied to clipboard
fun
clear
(
)
invoke
Link copied to clipboard
operator
fun
invoke
(
handler
:
(
T1
,
T2
)
->
Unit
)
:
Closeable
operator
fun
invoke
(
value1
:
T1
,
value2
:
T2
)
listen
Link copied to clipboard
suspend
fun
listen
(
)
:
ReceiveChannel
<
Pair
<
T1
,
T2
>
>
once
Link copied to clipboard
fun
once
(
handler
:
(
T1
,
T2
)
->
Unit
)
:
Closeable
wait
One
Link copied to clipboard
suspend
fun
<
T1
,
T2
>
Signal2
<
T1
,
T2
>
.
waitOne
(
)
:
Pair
<
T1
,
T2
>
wait
One
Base
Link copied to clipboard
open
suspend override
fun
waitOneBase
(
)
:
Pair
<
T1
,
T2
>