KTimer

constructor(scope: CoroutineScope, delay: Duration?, block: suspend () -> Unit)(source)

Parameters

scope

CoroutineScope that owns the timer job.

delay

How long to wait before firing block. Pass null to start paused.

block

Suspending action called once when the timer fires.