MutexWrapper

class MutexWrapper(mutex: Mutex = Mutex())

Wrapper class around Mutex. It is used to for debugging when lock, unlock functions needs to be logged.

Mutex should be shared between all client calls to GATT client, otherwise pending calls will be ignored by Android API.

Constructors

Link copied to clipboard
constructor(mutex: Mutex = Mutex())

Functions

Link copied to clipboard
suspend fun lock(feature: RequestedLockedFeature)
Link copied to clipboard
fun tryLock()
Link copied to clipboard