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

Async methods and error stack traces, to reduce crashing and help debugging #126

Closed
wants to merge 1 commit into from

Conversation

Erhannis
Copy link

As it was, any of several different mistakes (such as not discovering services before trying to read a characteristic) would cause a PlatformException to be thrown in an unawaited Future, crashing the whole app. I've converted all such methods as I've found from void to async Future<void>, enabling the user to await their completion or add a catchError. I also added a stack trace to a number of otherwise more opaque errors.

@Sunbreak
Copy link
Collaborator

We're moving to https://github.com/woodemi/quick.flutter

This repo would be deprecated

@Erhannis
Copy link
Author

Ok; I remade the changes in the new repo: woodemi/quick.flutter#67

@Sunbreak Sunbreak closed this Aug 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants