Cooperative cancellation limits in NonCancellable cleanup blocks
In Kotlin coroutines, cancellation is cooperative, requiring the coroutine to check its activation state or hit a suspension point. While the NonCancellable context is designed to ensure critical cleanup code executes after a job has been cancelled, it introduces specific constraints regarding resource management and timeouts. The primary concern arises when