Reactive.Annex.Uno
1.0.2
dotnet add package Reactive.Annex.Uno --version 1.0.2
NuGet\Install-Package Reactive.Annex.Uno -Version 1.0.2
<PackageReference Include="Reactive.Annex.Uno" Version="1.0.2" />
paket add Reactive.Annex.Uno --version 1.0.2
#r "nuget: Reactive.Annex.Uno, 1.0.2"
// Install Reactive.Annex.Uno as a Cake Addin #addin nuget:?package=Reactive.Annex.Uno&version=1.0.2 // Install Reactive.Annex.Uno as a Cake Tool #tool nuget:?package=Reactive.Annex.Uno&version=1.0.2
Reactive.Annex
New types and extension methods built on top of System.Reactive
.
Getting Started
Add the
Reactive.Annex
nuget package to your project.Then, make sure you are using the
System.Reactive.Linq
andSystem.Reactive.Concurrency
namespaces in your file.
You are now ready to use these handy extension methods!
Next Steps
If your project uses Uno Platform, you can also add the following packages.
Reactive.Annex.Uno
for projects using Uno.UI and UWP.Reactive.Annex.Uno.WinUI
for projects using Uno.WinUI or WinUI.
With this, You can create a MainDispatcherScheduler
, which implements the IDispatcherScheduler
interface.
WinUI / Uno.WinUI
Microsoft.UI.Dispatching.DispatcherQueue dispatcherQueue = //...
var scheduler = new MainDispatcherScheduler(dispatcherQueue);
UWP / Uno.UI
Windows.UI.Core coreDispatcher = //...
var scheduler = new MainDispatcherScheduler(coreDispatcher);
Features
Specialized Interfaces for DI
You can use IBackgroundScheduler
and IDispatcherScheduler
to clearly differentiate background schedulers from dispatcher schedulers. Both interfaces implement IScheduler
. This is useful when using dependency injection.
Implementations
MainDispatcherScheduler
is an implementation of IDispatcherScheduler
. It's available from the Reactive.Annex.Uno
and Reactive.Annex.Uno.WinUI
packages.
- Use
Reactive.Annex.Uno
in projets using UWP or Uno.UI. - Use
Reactive.Annex.Uno.WinUI
in projects using WinUI or Uno.WinUI.
Extension Methods on IObservable
FirstAsync
: Creates a task from an IObservable with the first value observed.FromAsync
: Converts an async method into an observable sequence.SelectManyDisposePrevious
: Runs an async action each time your observable sequence produces a new value while making sure to cancel the previous action if it's still running.SkipWhileSelectMany
: Projects element of an observable sequence to another observable sequence, skipping new elements while resulting observable is not completed, and merges the resulting observable sequences into one observable sequence.
Extension Methods on IScheduler
ScheduleTask
: Schedules work using an asynchronous method, allowing for cooperative scheduling in an imperative coding style.Run
: Awaits a task execution on the specified scheduler, providing the result.
Changelog
Please consult the CHANGELOG for more information about version history.
License
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.
Contributing
Please read CONTRIBUTING.md for details on the process for contributing to this project.
Be mindful of our Code of Conduct.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. monoandroid11.0 is compatible. monoandroid12.0 is compatible. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap10.0.19041 is compatible. |
Xamarin.iOS | xamarinios was computed. xamarinios10 is compatible. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Reactive.Annex (>= 1.0.2)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.UI (>= 4.0.7)
-
MonoAndroid 11.0
- Reactive.Annex (>= 1.0.2)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.UI (>= 4.0.7)
-
MonoAndroid 12.0
- Reactive.Annex (>= 1.0.2)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.UI (>= 4.0.7)
-
UAP 10.0.19041
- Reactive.Annex (>= 1.0.2)
- System.Reactive (>= 4.4.1)
-
Xamarin.iOS 1.0
- Reactive.Annex (>= 1.0.2)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.UI (>= 4.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2 | 186 | 9/26/2023 |
1.0.1 | 706 | 9/15/2023 |
0.6.0-dev.50 | 2,239 | 10/26/2022 |
0.5.0-feature.dotnet6.38 | 166 | 9/22/2022 |
0.5.0-feature.dotnet6.30 | 133 | 9/21/2022 |
0.5.0-dev.46 | 138 | 10/13/2022 |
0.5.0-dev.44 | 121 | 10/13/2022 |
0.5.0-dev.41 | 1,540 | 10/11/2022 |
0.5.0-dev.39 | 551 | 9/26/2022 |
0.5.0-dev.29 | 54,383 | 3/31/2022 |
0.4.0-feature.uno-ui-4.26 | 162 | 3/15/2022 |
0.4.0-dev.27 | 287 | 3/15/2022 |
0.3.0-feature.uno-ui-4.24 | 6,148 | 12/21/2021 |
0.3.0-dev.18 | 53,063 | 3/16/2021 |
0.2.0-dev.16 | 363 | 11/2/2020 |
0.2.0-dev.14 | 10,064 | 6/26/2020 |
0.1.0 | 189 | 9/14/2023 |