launchAsync

fun launchAsync(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> Unit): TaskHandle

Launches a coroutine asynchronously.

Return

a TaskHandle that can be used to cancel the coroutine

Parameters

context

additional coroutine context

block

the coroutine code