launchDelayed

fun launchDelayed(startDelayInMs: Number, specificContext: CoroutineContext = coroutineContext, block: suspend () -> Unit): Job

Launch a function after a certain amount of delay.

Return

Job of the coroutine

Parameters

startDelayInMs

How long to wait (in ms) before starting execution of code block

specificContext

If you need to have the job run in a specific CoroutineContext, specify here

block

function to run