toggle menu
KStg
1.0-SNAPSHOT
jvm
switch theme
search in API
KStg
/
top.kkoishi.stg.logic
/
GameLoop
/
Companion
/
addTask
add
Task
@
JvmStatic
fun
addTask
(
timer
:
Timer
,
action
:
(
)
->
Unit
)
@
JvmStatic
fun
addTask
(
timer
:
Timer.Loop
,
shouldEnd
:
(
Long
,
Long
,
Long
)
->
Boolean
,
action
:
(
)
->
Unit
)
@
JvmStatic
fun
addTask
(
timer
:
Timer
,
action
:
(
)
->
Unit
,
exceptionHandler
:
(
Throwable
)
->
Unit
)
@
JvmStatic
fun
addTask
(
timer
:
Timer.Loop
,
shouldEnd
:
(
Long
,
Long
,
Long
)
->
Boolean
,
action
:
(
)
->
Unit
,
exceptionHandler
:
(
Throwable
)
->
Unit
)
@
JvmStatic
fun
addTask
(
interval
:
Long
,
times
:
Long
,
action
:
(
)
->
Unit
,
exceptionHandler
:
(
Throwable
)
->
Unit
)