doAsync

fun doAsync(@WorkerThread block: suspend CoroutineScope.() -> Unit): Job

Runs some code asynchronously. Use doOnMain for updating UI elements.

Author

Arnau Mora

Since

20210413

See also

Use this for updating UI elements.

Parameters

block

The code to run