reactiveui / reactiveui.uno Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Describe the bug
Using ReactiveUI.Uno.WinUI, my ViewModel throws RuntimeExceptions like 'The application called an interface that was marshalled for a different thread', despite using ObserveOn(RxApp.MainThreadScheduler)
.
Also code like RxApp.MainThreadScheduler.Schedule(() => IsBusy = false)
, the delegate is not executed on the main thread.
Steps To Reproduce
Small solution based on latest visual studio Uno template, Windows only.
UnoWinUI_ReactiveUI_MainThreadScheduler.zip
Provide the steps to reproduce the behaviour:
ViewModel.SearchResult
ends in the error.Expected behaviour
I am expecting the viewmodel property SearchResult
to be set on the main thread, so it does not throw the 'marshalled for a different thread' exception.
Environment
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/ci-build.yml
.github/workflows/lock.yml
dessant/lock-threads v5
.github/workflows/release.yml
src/Directory.build.props
Roslynator.Analyzers 4.12.2
stylecop.analyzers 1.2.0-beta.556
Nerdbank.GitVersioning 3.6.133
Microsoft.SourceLink.GitHub 8.0.0
Verify.Xunit 24.1.0
coverlet.msbuild 6.0.2
PublicApiGenerator 11.1.0
Microsoft.Reactive.Testing 6.0.0
FluentAssertions 6.12.0
Xunit.StaFact 1.1.11
xunit.runner.visualstudio 2.8.0
xunit.runner.console 2.8.0
xunit 2.8.0
Microsoft.NET.Test.Sdk 17.9.0
src/ReactiveUI.Uno.WinUI/ReactiveUI.Uno.WinUI.csproj
ReactiveUI 20.0.1
Uno.WinUI 5.2.108
Microsoft.WindowsAppSDK 1.5.240428000
Microsoft.Windows.SDK.BuildTools 10.0.22621.3233
src/ReactiveUI.Uno/ReactiveUI.Uno.csproj
ReactiveUI 20.0.1
Uno.UI 5.2.108
src/global.json
dotnet-sdk 8.0.204
MSBuild.Sdk.Extras 3.0.44
Currently, multithreading is not supported in WebAssembly.
When developing for Uno, at the moment I have to explicitly override TaskPoolScheduler so that the code works on all platforms.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.