Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: switch from futures-channel to async-channel. #12

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

Dirbaio
Copy link
Contributor

@Dirbaio Dirbaio commented Mar 20, 2024

futures-channel doesn't support blocking send, so in the callbacks from java
(which are not in an async context) we're forced to do try_send, which will lose
data if the channel is full because the Rust side is too busy.

This is not a big deal for scanning, but is for stuff like gatt/l2cap responses that
are coming next.

`futures-channel` doesn't support blocking send, so in the callbacks from java
(which are not in an async context) we're forced to do `try_send`, which will lose
data if the channel is full because the Rust side is too busy.

This is not a big deal for scanning, but is for stuff like gatt/l2cap responses that
are coming next.
@alexmoon alexmoon merged commit b91fd32 into alexmoon:main Mar 20, 2024
4 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