unlock

fun unlock()

Releases the lock. If the current thread holds the lock, it will be released, allowing other threads to acquire it.