net.corda.node.utilities / AffinityExecutor / checkOnThread

checkOnThread

open fun checkOnThread(): Unit

Throws an IllegalStateException if the current thread is not one of the threads this executor is backed by.