You can also use tryLock(), which returns a Boolean indicating whether it was possible to lock the mutex: val mutex = Mutex() mutex.lock() val lockedByMe ...
確定! 回上一頁