LocksClient

interface LocksClient

Interface representing a client for managing locks.

Functions

Link copied to clipboard
abstract suspend fun shutdown(): Boolean

Shuts down the lock client.

Link copied to clipboard
abstract suspend fun <T> withLock(id: UUID, block: suspend () -> T): LockResult<T>

Acquires a lock for a specific entity and executes a block of code.