تخطَّ إلى المحتوى

Cancellation Swallowed (ARCH8168)

هذا المحتوى غير متوفر بلغتك بعد.

Key kotlin.logging.cancellation-swallowed · Severity warning · Category logging

Flags catch blocks that catch CancellationException / InterruptedException without rethrowing or re-interrupting - cancellation stops propagating.

catch (e: CancellationException) { log.warn("cancelled") }
catch (e: CancellationException) { cleanup(); throw e }

Rethrow CancellationException; for InterruptedException call Thread.currentThread().interrupt().