Open A248 opened 3 years ago
1: a) Pull requests welcome, but in this case it's considered not enough of an issue to matter. b) Would it be better to access a potentially unresponsive MySQL server on the main thread and lock up the rest of the server while we wait? 2: My opinion differs and this won't be changed.
Would it be better to access a potentially unresponsive MySQL server on the main thread and lock up the rest of the server while we wait?
Don't get me wrong, I never said that. Certain operations need to be run asynchronously whereas others do not.
Pull requests welcome
I am planning to work on this when I have more time : )
Two problems I noticed with commands:
All command execution is ran asynchronously, per, ironically, SaneCommand. On the contrary this is not sane at all, for multiple reasons:
Using exceptions as control flow. Though tempting as it is, exceptions should be reserved for truly exceptional behaviour. I've violated this rule myself when I initially thought better, but coming back to the code has always shown me it's wrong. This is less severe than No.1, but it's something you may want to reconsider nonetheless. Far less of a priority.