tryLock

Tries to acquire a lock on the mutex. If the lock is already acquired by another thread, this method returns immediately with a false value. Otherwise, if the lock is obtained, this method returns true.

common
fun tryLock(): Boolean
ios
fun tryLock(): Boolean