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

Replace OperationQueue with Custom Dispatcher #27

Open
sureshjoshi opened this issue May 19, 2018 · 1 comment
Open

Replace OperationQueue with Custom Dispatcher #27

sureshjoshi opened this issue May 19, 2018 · 1 comment

Comments

@sureshjoshi
Copy link
Member

The Operation Queue is neat, but a giant pain in the ass to extend - with all of its quirks.

Blueteeth has a super simple Dispatcher at around 40 lines of code, and it'll work just as well as SwiftyTeeth needs for a SerialDispatcher

@sureshjoshi sureshjoshi self-assigned this May 25, 2018
@sureshjoshi
Copy link
Member Author

Just discovered some more race conditions using a piece of hardware that disconnects immediately after receiving a TX message - basically, the existing message in the queue doesn't finish up, so just loiters and blocks the queue (even after cancellation).

Definitely need a better queue system.

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

No branches or pull requests

1 participant