doOnMain

@DelicateCoroutinesApi
fun doOnMain(enableLog: Boolean = true, onLog: (text: String) -> Unit = {}, func: suspend () -> Unit)