reactiveui / reactiveui/ReactiveUI.SourceGenerators
ReactiveCommand with running scheduler (not output scheduler)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 71
- Forks
- 6
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 4
Description
This is primarily related to Task Commands, but maybe other commands could benefit from this. When I'm creating Task Commands, because I try to run on background thread always, I'm "polluting" every command with Task.Run envelopes around my real code. It would be interesting if ReactiveCommand attribute via Source Generators could generate that envelope to force the running of the code inside a Task.Run (using, for example, ForceTaskRun = true, by default false) or maybe better, a property like RunningScheduler that runs all the command code in that scheduler (by default null or RxApp.MainThreadScheduler).
What do you think?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ReactiveCommand attribute and its source-generator entry points, then review how Task Commands are currently generated. The proposal needs a decided API and behavior for a running scheduler or Task.Run option before completion can be defined; no files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100