lib
lib
/
com.github.mnemotechnician.mkui.extensions
/
runUiCatching
run
Ui
Catching
inline
fun
<
T
:
Exception
>
runUiCatching
(
crossinline
onFailure
:
(
T
)
->
Unit
=
{ Log.err("Failure in runUiCatching", it) }
,
crossinline
block
:
(
)
->
Unit
)
Runs the specified function on the ui thread and catches any exceptions.