Kotlin-BLE-Library icon indicating copy to clipboard operation
Kotlin-BLE-Library copied to clipboard

SuspendCoroutine never complete when scope.cancel

Open KittenBall opened this issue 1 year ago • 0 comments

As title, if we use client or server's characteristic, call write(data) and immediately call scope.cancel, the _event will never receive event, and then, the write will never complete, which means the scope.coroutineContext.job never completed.

KittenBall avatar Jan 26 '24 05:01 KittenBall