net.corda.node.utilities / AffinityExecutor / isOnThread

isOnThread

abstract val isOnThread: Boolean

Returns true if the current thread is equal to the thread this executor is backed by.