toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-web
/
web.timers
Package-level
declarations
Types
Functions
Types
Interval
Link copied to clipboard
sealed
external
interface
Interval
Timeout
Link copied to clipboard
sealed
external
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