Questions tagged [rx.net]

The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.

The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, and parameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers.

Resources:

264 questions
0
votes
1 answer

What is the relationship between IObservable and ObservableExtensions in Rx?

I read the code of Reactive Extension, then I find this code private readonly IObservable _source; protected override IDisposable Run(IObserver observer, IDisposable cancel, Action setSink) { var sink = new…
Tyoshi
  • 9
  • 2
-1
votes
1 answer

Understanding Rx.Net with Xamarin.Forms

I'm trying to understand why the OnNext event doesn't work the way I want to make it works, and if there is a way to make it works. By doing this, the subscription in the MainPage class never received the OnNext event. Certainly, if I write the…
JBD
  • 568
  • 8
  • 25
-1
votes
1 answer

RX.net - catching exceptions and higher order observables

I'm trying to learn RX(.net) and I'm losing my mind a bit. I have an observable of which I want to handle exceptions by using Catch(). I want to be able to access the item T that is moving through the observable chain within that Catch() and I…
-1
votes
1 answer

Rx.Net + Reactive-Ui + MahApps.Metro - Repeating & retrying asynchronous request with gated dialogs

Given an observable of form: var fetchTimer = Observable.Timer(TimeSpan.FromSeconds(1)); var stateFetcher = Observable.FromAsync(async () => await _robotsClient.GetRobotsStateAsync(new GetRobotsStateRequest())); var delayedFetch =…
Clint
  • 6,133
  • 2
  • 27
  • 48
-1
votes
1 answer

How can I create a class that is both a Task and an IObservable?

Recently I encountered a situation where having an asynchronous operation represented both as a Task and as an IObservable would be advantageous. The task representation maintains the state of the operation (IsCompleted, IsFaulted etc), while…
Theodor Zoulias
  • 34,835
  • 7
  • 69
  • 104
-1
votes
1 answer

Suspending a timer-based operation on failure

I've got a WPF app using ReactiveUI, and it works by periodically fetching state from an external process. Given a fetch observable as follows: var latestState = Observable.Interval(TimeSpan.FromSeconds(.5)) .SelectMany(async _ => { …
Clint
  • 6,133
  • 2
  • 27
  • 48
-1
votes
2 answers

Switch from up-to-date historical data observable to live data observable without duplicates

An application (Saver) receives live data over a websocket from a remote server and stores it in a database. It exposes a REST endpoint to clients that returns all data stored in the database so far. A client application subscribes to live data on…
arbitrary
  • 103
  • 9
-1
votes
1 answer

Equivalent of .onBackpressureBuffer() in Rx.Net?

There's a source that emits items asynchronously, in my case in the order of 10 items withing some seconds. I want to handle all of them. In order of appearance One at a time Handling of each might take long (like 1-5 seconds) There might be new…
Odys
  • 8,951
  • 10
  • 69
  • 111
-2
votes
1 answer

How to write a SelectManyLatest operator in Rx.NET and UniRx

SelectManyLatest is necessary operator. But All Internet don't answer how you can write it. So how? SelectManyLatest is a FlatMapLatest in other Rx Frameworks. This operator like SelectMany but it complete previous subscription if new emit happens.
1 2 3
17
18