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

Delimited String Device Connection concurrency #152

Open
kenjdavidson opened this issue Nov 26, 2021 · 0 comments
Open

Delimited String Device Connection concurrency #152

kenjdavidson opened this issue Nov 26, 2021 · 0 comments
Labels
android enhancement New feature or request

Comments

@kenjdavidson
Copy link
Owner

Same thing from @wallaroo right now the Delimited String just builds up in the same type of buffer, then reading from this would access at the same time as a right.

Since we know the delimited buffer provides delimited strings, this might be better of:

  • Data comes in
  • Add it to the buffer
  • Check the buffer for delimiter
  • If delimiter exists pull data out into a concurrent list of strings

Reading would empty the list of strings instead of hitting the buffer.
Size would be the number of messages in the string list (no longer the buffer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant