Suspending in finally after cancel
After this coroutine is cancelled, the server never gets the "release" call. Why, and what is the fix?
try {
api.lock(id)
doWork()
} finally {
api.release(id) // suspend fun
}Discussion 0
Join free to post in the discussion.
Related questions
- Android activity start orderMobile App Developer
- What AndroidManifest.xml is forMobile App Developer
- Sharing text to any appMobile App Developer
- Play Console rejects the build versionMobile App Developer
- lateinit or by lazyMobile App Developer
- A chain of safe callsMobile App Developer
- What !! does on nullMobile App Developer
- What let returnsMobile App Developer