flutter_blue
flutter_blue copied to clipboard
Raise exception on timeout during connection
There is no way to catch an exception that is thrown inside of a Timer's callback method. Instead a Completer is used and whichever of the timeout or native channel call completes first determines which value the future is complete with: error or void.