JuulLabs / able

Able: Android Bluetooth Low Energy library
Apache License 2.0
160 stars 11 forks source link

Remove FailedToDeliverEvent Exception #50

Closed twyatt closed 4 years ago

twyatt commented 4 years ago

Was thrown if we failed to offer response in GattCallback, but onResponse is a CONFLATED Channel so will never return false (i.e. this Exception would never be thrown).

We're protected by the Mutex in CoroutinesGatt which enforces that requests are executed sequentially, so we should never have a response trample a previous (i.e. response is received from onResponse Channel prior to the next request going out).