Repository navigation
Await the async CGMManagerDelegate calls; drop delegateQueue - #118
Merged
Merged
Conversation
Readings go through delegate.notify like the other calls, so they reach the delegate in order with the sensor events and alerts.
yurique
added a commit
to Artificial-Pancreas/G7SensorKit
that referenced
this pull request
Nov 13, 2026
…nsor re-adoption and GATT log fixes Brings in LoopKit/G7SensorKit next-dev up to 760fe99 (the merge of LoopKit#113): - LoopKit#113 calibration advice redesign: why/how pages, entry-page cautions, After You Calibrate page, advice counted as seen once the entry page is reached. - LoopKit#115 don't adopt a failed or ended sensor again (fixes a Sensor Failed alarm every five minutes). - LoopKit#117 don't crash logging a GATT error. LoopKit#118 (async CGMManagerDelegate, drop delegateQueue) is left out: it needs LoopKit next-dev #696, which the iAPS LoopKit dev line does not carry. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
yurique
added a commit
to Artificial-Pancreas/G7SensorKit
that referenced
this pull request
Nov 21, 2026
…xes, settings split, async delegates Brings in LoopKit/G7SensorKit next-dev up to 7e15158: - LoopKit#118 readings go through delegate.notify, in order with events and alerts. - LoopKit#124 listen for control responses without waiting to observe authentication. - LoopKit#125 use the reconnect start delay only after a link that delivered a reading. - LoopKit#126 enable control notifications before authentication when eavesdropping. - LoopKit#114 settings split into Sensor and Session sections. - LoopKit#119, LoopKit#110 watch target changes (not built by iAPS); the manager now notifies CGMManagerStatusObservers of status, search and note changes. Adapted to the iAPS LoopKit dev line as before: delegate calls inside the notify blocks are not awaited, and delegateQueue stays, backed by the WeakSynchronizedDelegate queue. Needs isSearchingForSensor and shortStatusNote on CGMManager (LoopKit next-dev-port). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to LoopKit/LoopKit#696, which removes
delegateQueueand makes the delegate calls async. Needs that PR.delegateQueue?.asyncand the delegate directly. They now go throughdelegate.notifylike the other calls, so they reach the delegate in order with the sensor events and alerts.notifyare awaited, theTaskwrappers around alerts are gone, anddelegateQueueis removed.nonisolated(unsafe).Tested with the full LoopWorkspace test suite on the simulator (G7SensorKit 207 pass). Not run with a sensor yet.