Skip to content

feat: Add async characteristic subscription that awaits BLE setup - #945

Merged
PieterAelse merged 1 commit into
PhilipsHue:masterfrom
oskarwilliams:oskar/implement-async-subscribing
Oct 22, 2026
Merged

PieterAelse merged 1 commit into
PhilipsHue:masterfrom
oskarwilliams:oskar/implement-async-subscribing

Conversation

@oskarwilliams

Copy link
Copy Markdown
Contributor

The existing subscribe() method returns a stream immediately, potentially leading to race conditions or unhandled errors if the underlying BLE notification setup fails or is delayed. This new subscribeAsync() method waits for the BLE subscription on the native platform to be fully established before returning the stream, providing a more robust and predictable API.

The existing `subscribe()` method returns a stream immediately, potentially leading to race conditions or unhandled errors if the underlying BLE notification setup fails or is delayed. This new `subscribeAsync()` method waits for the BLE subscription on the native platform to be fully established before returning the stream, providing a more robust and predictable API.
@PieterAelse
PieterAelse merged commit e8b43fb into PhilipsHue:master Oct 22, 2026
2 checks passed
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