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

Fix call cancellation impacting other calls #1688

Merged
merged 3 commits into from
Apr 18, 2022

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Apr 15, 2022

There is a bug in the new address picker to do with cancellation.

Canceling a call also cancels other queued-up calls. The fix is to not use a share TaskCompletionSource between callers for cancellation. Instead, WaitAsync has its own TCS. WaitAsync is new in .NET 6 so a compatible version is added to older platforms.

This change makes picking much simpler. It hopeful addresses An attempt was made to transition a task to a final state when it had already completed. from #1654

Co-authored-by: Safia Abdalla <safia@safia.rocks>
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.

None yet

2 participants