Skip to content

Await alert retractions before asking Loop to delete the manager - #33

Merged
ps2 merged 1 commit into
mainfrom
async-device-deletion
Nov 2, 2026
Merged

ps2 merged 1 commit into
mainfrom
async-device-deletion

Conversation

@ps2

@ps2 ps2 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

retractAllAlerts() is async. delete() awaits it and then cgmManagerWantsDeletion; discardSensor() runs it in a Task. The settings view awaits delete() before dismissing.

Tests: the delete test checks retraction-before-deletion order with fulfillment(enforceOrder:). 16 pass.

Part of the async device deletion change in LoopKit/LoopKit#685, which this depends on. They merge together.

retractAllAlerts() is async. delete() awaits it and then
cgmManagerWantsDeletion; discardSensor() runs it in a Task. The settings
view awaits delete() before dismissing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant