Commit c13dfe0
authored
Add platform-specific main thread schedulers for MAUI (#4212)
<!-- Please be sure to read the
[Contribute](https://github.com/reactiveui/reactiveui#contribute)
section of the README -->
**What kind of change does this PR introduce?**
<!-- Bug fix, feature, docs update, ... -->
Fixes #4185
**What is the current behavior?**
<!-- You can also link to an open issue here. -->
#4185
**What is the new behavior?**
<!-- If this is a feature change -->
Introduces AndroidMainThreadScheduler and AppleMainThreadScheduler
properties for platform-specific main thread scheduling. Updates
WithMauiScheduler to use the appropriate scheduler based on the target
platform, improving UI thread handling for Android, iOS, macOS, and Mac
Catalyst.
**What might this PR break?**
Resolves a threading issue with Maui
**Please check if the PR fulfills these requirements**
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
**Other information**:1 parent da99d4a commit c13dfe0
File tree
2 files changed
+49
-4
lines changed- src
- ReactiveUI.Maui/Builder
- ReactiveUI
2 files changed
+49
-4
lines changedLines changed: 48 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
23 | 53 | | |
24 | 54 | | |
25 | 55 | | |
| |||
43 | 73 | | |
44 | 74 | | |
45 | 75 | | |
46 | | - | |
| 76 | + | |
47 | 77 | | |
48 | 78 | | |
49 | 79 | | |
| |||
54 | 84 | | |
55 | 85 | | |
56 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
57 | 101 | | |
| 102 | + | |
58 | 103 | | |
59 | 104 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
0 commit comments