Repository navigation
Commit 6dab874
authored
refactor: isolate scheduler state and condense code comments (#211)
* chore: Update benchmarks and fix tests
* refactor(tests): drive scheduling tests from state, not the clock
- Replace delays, polling and thread rendezvous with awaited completion
sources, virtual clocks and ordered calls into internal seams.
- Add seams for stepwise dispatch: WasmScheduler.QueueReady and
RunReadyBatch, so enqueue, dispose and drain are explicit steps.
- Assert per-item dispatch counts where a total was checked before.
- Trim documentation to the contract: concise summaries, inline notes at
the confusing line, and remarks only for non-obvious behaviour.
- Correct exception docs to the type thrown rather than the guard helper.
* chore: more churn
* further work
* docs: state what non-public members do, not why
- Reduce internal operator and helper summaries to a single line of behaviour.
- Drop allocation and deadlock rationale from field and method summaries.
- Keep remarks for public contracts a caller cannot infer from the signature.
* Further
* further
* fix(concurrency): convert durations and timestamps with integer math
- Scale between ticks and monotonic timestamps without a double round trip, so
a duration representable on both grids survives unchanged.
- A 50-tick delay converted at a 10 MHz timestamp frequency no longer lands a
tick late, which left scheduled work undue at its own due time.
* docs(extensions): name what each parameter carries
- Replace placeholder parameter text with the role the argument plays.
- Say which window a sequencer times, and which side an observer receives.
* Add further tests
* Fix build issue1 parent cb8fb40 commit 6dab874
1,049 files changed
Lines changed: 18934 additions & 20515 deletions
File tree
- src
- Polyfills
- ReactiveUI.Disposables
- Disposables
- PublicAPI
- net10.0
- net11.0
- net462
- net472
- net481
- net48
- net8.0
- net9.0
- ReactiveUI.Primitives.Async.Core
- Advanced
- Disposables
- Helpers
- Mixins
- Observables
- Operators
- PublicAPI
- net10.0
- net11.0
- net462
- net472
- net481
- net48
- net8.0
- net9.0
- Signals
- Base
- Options
- ReactiveUI.Primitives.Async.Reactive
- Concurrency
- PublicAPI
- net10.0
- net11.0
- net462
- net472
- net481
- net48
- net8.0
- net9.0
- ReactiveUI.Primitives.Async/PublicAPI
- net10.0
- net11.0
- net462
- net472
- net481
- net48
- net8.0
- net9.0
- ReactiveUI.Primitives.Avalonia.Reactive
- Concurrency
- PublicAPI
- net10.0
- net11.0
- net8.0
- net9.0
- ReactiveUI.Primitives.Avalonia
- Concurrency
- ReactiveUI.Primitives.Blazor.Reactive/Concurrency
- ReactiveUI.Primitives.Blazor
- Concurrency
- ReactiveUI.Primitives.Core
- Advanced
- Concurrency
- Core
- Signals
- ReactiveUI.Primitives.Extensions.Core
- Internal
- Operators
- ReactiveUI.Primitives.Maui.Reactive/Concurrency
- ReactiveUI.Primitives.Maui/Concurrency
- ReactiveUI.Primitives.ObservableEvents
- CodeGeneration
- Helpers
- Models
- ReactiveUI.Primitives.Reactive
- Concurrency
- Disposables
- Platforms
- android
- apple
- ReactiveUI.Primitives.WinForms.Reactive/Concurrency
- ReactiveUI.Primitives.WinForms
- Concurrency
- Properties
- ReactiveUI.Primitives.WinUI.Reactive
- Concurrency
- PublicAPI
- net10.0-windows10.0.19041.0
- net11.0-windows10.0.19041.0
- net8.0-windows10.0.19041.0
- net9.0-windows10.0.19041.0
- ReactiveUI.Primitives.WinUI
- Concurrency
- Properties
- ReactiveUI.Primitives.Wpf.Reactive
- Concurrency
- PublicAPI
- net10.0-windows
- net11.0-windows
- net462
- net472
- net481
- net48
- net8.0-windows
- net9.0-windows
- ReactiveUI.Primitives.Wpf
- Concurrency
- Properties
- ReactiveUI.Primitives
- Advanced
- Concurrency
- Platforms
- android
- apple
- benchmarks
- ReactiveUI.Primitives.Benchmarks
- ReactiveUI.Primitives.ObservableEvents.Benchmarks
- tests
- ReactiveUI.Disposables.Tests
- ReactiveUI.Primitives.Async.Reactive.Tests
- ReactiveUI.Primitives.Async.Tests
- Internals
- ReactiveUI.Primitives.Avalonia.Reactive.Tests
- ReactiveUI.Primitives.Avalonia.Tests
- ReactiveUI.Primitives.Blazor.Reactive.Tests
- ReactiveUI.Primitives.Blazor.Tests
- ReactiveUI.Primitives.Extensions.Reactive.Tests
- ReactiveUI.Primitives.Extensions.Tests
- Internal
- Operators
- ReactiveUI.Primitives.Maui.Reactive.Tests
- ReactiveUI.Primitives.Maui.Tests
- ReactiveUI.Primitives.ObservableEvents.Tests
- ReactiveUI.Primitives.Reactive.Tests
- ReactiveUI.Primitives.Tests
- Common
- ReactiveUI.Primitives.WinForms.Reactive.Tests
- ReactiveUI.Primitives.WinForms.Tests
- ReactiveUI.Primitives.WinUI.Reactive.Tests
- ReactiveUI.Primitives.WinUI.Tests
- ReactiveUI.Primitives.Wpf.Reactive.Tests
- ReactiveUI.Primitives.Wpf.Tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
15 | 11 | | |
16 | 12 | | |
17 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
| |||
0 commit comments