launch

fun launch(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job

Launches a coroutine in this scope for internal policy work (e.g. cache cleanup).

Return

The Job of the launched coroutine.

Parameters

context

Additional CoroutineContext to merge with the scope's context.

start

CoroutineStart strategy (default is CoroutineStart.DEFAULT).

block

The suspend block to run in the launched coroutine.