toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.async
/
AsyncSignal
Async
Signal
class
AsyncSignal
<
T
>
(
onRegister
:
(
)
->
Unit
=
{}
)
:
BaseSignal
<
T
,
suspend
(
T
)
->
Unit
>
Members
Members & Extensions
Constructors
Async
Signal
Link copied to clipboard
constructor
(
onRegister
:
(
)
->
Unit
=
{}
)
Properties
has
Listeners
Link copied to clipboard
val
hasListeners
:
Boolean
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
:
suspend
(
T
)
->
Unit
)
:
Closeable
clear
Link copied to clipboard
fun
clear
(
)
invoke
Link copied to clipboard
suspend operator
fun
invoke
(
value
:
T
)
operator
fun
invoke
(
handler
:
suspend
(
T
)
->
Unit
)
:
Closeable
invoke
Link copied to clipboard
suspend operator
fun
AsyncSignal
<
Unit
>
.
invoke
(
)
listen
Link copied to clipboard
suspend
fun
listen
(
)
:
ReceiveChannel
<
T
>
map
Signal
Link copied to clipboard
fun
<
TI
,
TO
>
AsyncSignal
<
TI
>
.
mapSignal
(
transform
:
(
TI
)
->
TO
)
:
AsyncSignal
<
TO
>
once
Link copied to clipboard
fun
once
(
handler
:
suspend
(
T
)
->
Unit
)
:
Closeable
wait
One
Link copied to clipboard
suspend
fun
<
T
>
AsyncSignal
<
T
>
.
waitOne
(
)
:
T
wait
One
Base
Link copied to clipboard
open
suspend override
fun
waitOneBase
(
)
:
T