I just deleted a driveby PR comment that should either be a tweet into the ether or a slack question, so here 'tis. Is CancellableContinuation.resume's handling of a cancellation lambda an example where it's less readable?
I love Kotlin's last param lambda logic generally. I think in this API, this callsite is an example of where it hides the intent.
cont.resume(Unit) { unlock(owner) }
vs
cont.resume(Unit, onCancellation = { unlock(owner) })