react-native-bluetooth-classic icon indicating copy to clipboard operation
react-native-bluetooth-classic copied to clipboard

Delimited String Device Connection concurrency

Open kenjdavidson opened this issue 3 years ago • 0 comments

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)

kenjdavidson avatar Nov 26 '21 18:11 kenjdavidson