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

feat: protect from multiple MethodChannel.Result invocation #489

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

ttypic
Copy link
Contributor

@ttypic ttypic commented Oct 25, 2023

Related to SDK-3906

@github-actions github-actions bot temporarily deployed to staging/pull/489/features October 25, 2023 12:34 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/489/dartdoc October 25, 2023 12:34 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/489/features October 25, 2023 12:36 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/489/dartdoc October 25, 2023 12:37 Inactive
Copy link
Collaborator

@sacOO7 sacOO7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Just in case, you might like to add a test to avoid a case where method call consistently throws exception.
Based on what I know, we shouldn't be posting callbacks on main threads, it can block app UI execution and main thread exceptions should be handled by developers themselves. Since this is an old working code, there might be some reason : )

@ttypic ttypic merged commit dbdef15 into main Oct 25, 2023
8 checks passed
@ttypic ttypic deleted the more-safe-channel-wrapper branch October 25, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants