acquire

abstract suspend fun acquire(name: String): SessionLockHandle?

Attempts to acquire the lock identified by name. Returns a SessionLockHandle on success, or null if name is already held elsewhere.