Named Job Lifecycle Discipline

One `var xJob: Job?` field per concern, cancel-before-relaunch as an invariant at every launch site, and teardown writes wrapped so a cancellation cannot stop them halfway. Use when periodic updates arrive several times per tick, when stale results from a previous item overwrite the current one, or when a long-lived object keeps working after it was released.

maxrave-dev 8dc6351 6.7 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/named-job-lifecycle-discipline commit 8dc6351a58

Frequently asked questions

npx skillmds@latest add maxrave-dev/named-job-lifecycle-discipline