mainContinuation

inline fun <T> mainContinuation(noinline block: (T) -> Unit): (T) -> Unit

Wraps a callback to ensure it runs on the main thread.