orbit-util / orbit.util.concurrent / ShutdownLatch

ShutdownLatch

class ShutdownLatch

Prevents the JVM from shutting down by creating a thread blocked on a latch.

Constructors

<init>

Prevents the JVM from shutting down by creating a thread blocked on a latch.

ShutdownLatch()

Functions

acquire

Acquires the latch thread and blocks shutdown.

fun acquire(): Unit

release

Releases the latch thread and allows shutdown.

fun release(): Unit