Skip to content

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

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

ps2 merged 1 commit into
next-devfrom
async-device-deletion

Conversation

@ps2

@ps2 ps2 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

delete() is async. It tears down, awaits each lifecycle alert retraction, then awaits cgmManagerWantsDeletion, so the retractions are guaranteed to land first (LoopKit/LoopKit#675). The settings view awaits delete() before dismissing.

Tests: the delete tests are async now. The ordering test also asserts that delete() returns after the delegate. 203 pass.

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

delete() is async: it tears down, awaits each lifecycle alert retraction,
then awaits cgmManagerWantsDeletion, so the retractions are guaranteed to
land first. The settings view awaits delete() before dismissing.
@ps2
ps2 merged commit 08d4886 into next-dev Nov 2, 2026
@ps2
ps2 deleted the async-device-deletion branch November 2, 2026 21:44
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