toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-gateway
/
dev.kord.gateway
/
Ticker
Ticker
class
Ticker
(
dispatcher
:
CoroutineDispatcher
=
Dispatchers.Default
)
:
CoroutineScope
(
source
)
A reusable fixed rate ticker.
Parameters
dispatcher
The dispatchers the events will be fired on.
Members
Constructors
Ticker
Link copied to clipboard
constructor
(
dispatcher
:
CoroutineDispatcher
=
Dispatchers.Default
)
Properties
coroutine
Context
Link copied to clipboard
open
override
val
coroutineContext
:
CoroutineContext
Functions
stop
Link copied to clipboard
suspend
fun
stop
(
)
tick
At
Link copied to clipboard
suspend
fun
tickAt
(
intervalMillis
:
Long
,
block
:
suspend
(
)
->
Unit
)