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 1cdbc89 4 files · 22.0 KB Updated

File contents

robsonkades/agent-skills/tree/main/skills/cancellation-and-interruption commit 1cdbc8989d

Frequently asked questions

npx skillmds@latest add robsonkades/cancellation-and-interruption