assertCurrent

Throws an exception if this thread is not the current thread.


fun <R> assertCurrent(action: () -> R): R