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

Use actual infinite timeout instead of zero timeout in Dispatcher.Send #14812

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

kekekeks
Copy link
Member

@kekekeks kekekeks commented Mar 4, 2024

Zero means zero, not infinite.

Right now SynchronizationContext.Send always throws a cancelled exception when called from non-UI thread.

@maxkatz6

@kekekeks kekekeks requested a review from maxkatz6 March 4, 2024 12:24
@kekekeks kekekeks force-pushed the fixes/sync-context-send-timeout branch from 2d89641 to 67f1a39 Compare March 4, 2024 13:31
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0045589-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Mar 5, 2024
@maxkatz6 maxkatz6 added this pull request to the merge queue Mar 5, 2024
Merged via the queue into master with commit c6ef4de Mar 5, 2024
7 checks passed
@maxkatz6 maxkatz6 deleted the fixes/sync-context-send-timeout branch March 5, 2024 02:31
@maxkatz6 maxkatz6 removed the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Mar 5, 2024
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.

3 participants