Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-web
/
web.timers
Package-level
declarations
Types
Functions
Types
Interval
Link copied to clipboard
sealed
interface
Interval
Timeout
Link copied to clipboard
sealed
interface
Timeout
Timer
Handler
Link copied to clipboard
typealias
TimerHandler
=
(
)
->
Unit
Functions
clear
Interval
Link copied to clipboard
external
fun
clearInterval
(
id
:
Interval
?
)
MDN Reference
clear
Timeout
Link copied to clipboard
external
fun
clearTimeout
(
id
:
Timeout
?
)
MDN Reference
set
Interval
Link copied to clipboard
external
fun
setInterval
(
handler
:
TimerHandler
,
timeout
:
Int
=
definedExternally
)
:
Interval
MDN Reference
fun
setInterval
(
timeout
:
Duration
,
handler
:
TimerHandler
)
:
Interval
set
Timeout
Link copied to clipboard
external
fun
setTimeout
(
handler
:
TimerHandler
,
timeout
:
Int
=
definedExternally
)
:
Timeout
MDN Reference
fun
setTimeout
(
timeout
:
Duration
,
handler
:
TimerHandler
)
:
Timeout