Datastore Driven Workmanager

Drive periodic background work straight from the settings store, so a toggle or an interval change takes effect immediately without a restart. Covers combining several preference flows into one scheduling decision, the update-in-place enqueue policy that lets a changed interval actually change, cancelling by unique name on disable, and why the worker must re-read the same settings itself. Android only. Use when changing a backup or sync interval does nothing until reinstall, when work keeps running after the user turned it off, or when two schedules end up stacked.

maxrave-dev 4048ac4 6.1 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/datastore-driven-workmanager commit 4048ac4a99

Frequently asked questions

npx skillmds@latest add maxrave-dev/datastore-driven-workmanager