core / pragma.jobs / BackgroundManager / fireAndForgetIO /
fireAndForgetIO #
abstract fun fireAndForgetIO(block: suspend CoroutineScope.() -> Unit)
Runs the block of code in the background on kotlinx.coroutines.Dispatchers.IO.
This is intended for calls that may block a thread, e.g. file I/O, databases.
Parameters #
block | Block of code to be executed. |