Cancellation And Interruption

Designing cooperative cancellation in Java across interruption, Future/CompletableFuture, executor/scope shutdown, deadlines, resource close/abort, CPU loops, blocking APIs, native calls, partial side effects and cleanup. Covers multiple cancellation sources, signal ownership, propagation/translation/restoration, noninterruptible regions, residual work, idempotency and bounded termination tests. Use when timeout/cancel returns but work or resources remain, or when `InterruptedException` handling is ambiguous. Timeout selection and retry policy are separate.

robsonkades Updated 3 repo stars

File contents

robsonkades/agent-skills commit 1cdbc8989d

Frequently asked questions

npx get-skill add robsonkades/cancellation-and-interruption