com.r3corda.node.utilities / AffinityExecutor / flush

flush

open fun flush(): Unit

Posts a no-op task to the executor and blocks this thread waiting for it to complete. This can be useful in tests when you want to be sure that a previous task submitted via execute has completed.