ZombieMutex

30 results · ↑ ↓ navigate · Enter open · Esc close

Engineering Workbench

Code recipes / Mobile & backend

Useful snippets, without the fluff.

Focused patterns with code you can copy, explanations of trust boundaries and failure cases, and links to primary sources. Platform examples are educational references, not unverified claims of production deployment.

6 recipes

Swift / Reference example

Observe cancellation inside a Swift task

Stop a loop cooperatively; cancellation is not remote transaction rollback.

Open recipe →

Kotlin / Reference example

Preserve Kotlin coroutine cancellation

Explicitly check coroutine cancellation in a long-running suspend function.

Open recipe →

SQL / Reference example

Scope an idempotency key by tenant

A uniqueness constraint is the foundation for atomic operation claims.

Open recipe →

TypeScript / Tested teaching helper

Separate identity from resource authorization

A client or attestation verdict cannot grant access to someone else's object.

Open recipe →

TypeScript / Tested teaching helper

Calculate a bounded retry delay

Cap exponential retry delays and let the caller enforce a total deadline.

Open recipe →

TypeScript / Tested teaching helper

Allowlist safe authentication telemetry

Create a structured outcome without recording the input's token or password.

Open recipe →