react-native-bluetooth-classic
react-native-bluetooth-classic copied to clipboard
Delimited String Device Connection concurrency
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)