tryLock

suspend fun tryLock(key: K, owner: Any? = null): Boolean(source)

Attempts to acquire the lock for key without suspension. Returns true if a lock was acquired.