corda / net.corda.node.services.api / MessagingServiceInternal / stop

# stop

`abstract fun stop(): Unit`

Initiates shutdown: if called from a thread that isn't controlled by the executor passed to the constructor then this will block until all in-flight messages have finished being handled and acknowledged. If called from a thread that's a part of the AffinityExecutor given to the constructor, it returns immediately and shutdown is asynchronous.