launchAsync

infix fun launchAsync(block: suspend CoroutineScope.() -> Unit): TaskHandle

Launches a coroutine asynchronously.

Return

a TaskHandle that can be used to cancel the coroutine

Parameters

block

the coroutine code