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

Configure awaits in RedistributableLocator to continue on any thread #345

Merged

Conversation

atifaziz
Copy link
Contributor

This PR configures awaits in RedistributableLocator to continue on any thread. This will help to avoid deadlocks in UI applications (and hopefully fixes #322). Without the .ConfigureAwait(false), the await points will try and continue on the captured context and the UI event loop thread in a desktop application. If the synchronous LocatePython method gets called on a UI thread, there's a good chance it will deadlock the application when initiating the download.

@tonybaloney tonybaloney merged commit 8dfadcd into tonybaloney:main Jan 27, 2025
37 checks passed
@atifaziz atifaziz deleted the config-RedistributableLocator-awaits branch January 27, 2025 08:59
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.

Is it possible to develop an Android .NET MAUI app using CSnake?
2 participants