I like it a lot, I did make a very small change for the async code. This might also explain why I really wanted to have async, I disable the connect button while the connect "runs" and can enable it again when an error occurs. It will stay disabled if the connect worked (we don't have a disconnect).
Without async it is not possible to update the button state while the method does its thing.
Can you add something to show the current activity?
I like it a lot, I did make a very small change for the async code. This might also explain why I really wanted to have async, I disable the connect button while the connect "runs" and can enable it again when an error occurs. It will stay disabled if the connect worked (we don't have a disconnect).
Without async it is not possible to update the button state while the method does its thing.
Can you add something to show the current activity?