doOnMain

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