Skip to content

Apple: correlate concurrent BLE callbacks in FIFO order - #305

Merged
fotiDim merged 2 commits into
mainfrom
codex/fix-apple-concurrent-callbacks
Sep 8, 2026
Merged

fotiDim merged 2 commits into
mainfrom
codex/fix-apple-concurrent-callbacks

Conversation

@fotiDim

@fotiDim fotiDim commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Description

Makes QueueType.none safe for concurrent Apple operations that share the same CoreBluetooth callback identity. Each callback now completes only the oldest matching pending operation instead of every match.

Covers characteristic reads, descriptor reads/writes, notification state changes, and RSSI reads. Write-with-response was already FIFO; write-without-response backpressure is handled separately by #300.

This unblocks the non-Android QueueType.auto behavior in #304 without adding Dart-side serialization.

Verification

  • flutter test (106 tests passed)
  • flutter build macos --debug

@fotiDim
fotiDim merged commit 62ddcd5 into main Sep 8, 2026
3 checks passed
@fotiDim
fotiDim deleted the codex/fix-apple-concurrent-callbacks branch September 8, 2026 09:42
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.

2 participants