Questions tagged [reactivex]

ReactiveX is a library for composing asynchronous and event-based programs by using observable sequences.

From reactivex.io:

It extends the observer pattern to support sequences of data and/or events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety, concurrent data structures, and non-blocking I/O.

688 questions
-1
votes
1 answer

Astonishing behavior with ReactiveX for .NET - Using Subject to handle messages being pushed from a series of IObservable objects

Originally I started out trying to solve the following question: I have a websocket client I wrote that needs to be periodically migrated using a well defined client protocol. The current implementation of the client I have exposes an IObservable…
Daniel Green
  • 634
  • 5
  • 14
-1
votes
1 answer

Some sort of to-do list with RxJS

I'm currently using RxJS in an angular project. In this project, I have a list that should act as a to-do list : In the beginning, the list is filled with 5 items. The user can remove an element. When an element is removed, a new element is…
botf
  • 140
  • 1
  • 12
-1
votes
1 answer

How can I update an item on Stream> with Stream?

I have a list of 'Foo' and later got some periodic single Foo updates. Can I update the existing list?
Sank
  • 1
  • 2
-1
votes
1 answer

Observable value inside subscribe is undefined when chaning observables

I have a function from a certain library that returns an Observable that I want to call from another function. I have a need to propagate that Observable into multiple function calls. Here is how my code is structured: extractSignature = (xml,…
user3362334
  • 1,980
  • 3
  • 26
  • 58
-1
votes
1 answer

What is the proper way to pass down variable down the chain with RxJava?

public Single createContent(final Content content) { BackendACL acl = new BackendACL(); acl.setPublicRead(false); acl.setPublicWrite(false); content.setAcl(acl); return…
quarks
  • 33,478
  • 73
  • 290
  • 513
-1
votes
1 answer

RxJava - ReplaySubject only emitting data twice

I am new to ReactiveX and I have a case where I want my observable to emit data to a late subscriber(whenever the observer subscribes, observable should emit the same data that it emitted previously). I made this Observable class that provide…
Daniyal Javaid
  • 1,426
  • 2
  • 18
  • 32
-1
votes
1 answer

RxJava Backpressure Buffer when Necessary

I'm trying to get a specific desired behavior with RxJava, and I can't figure out how to do it. I want variable length buffer BackPressureStrategy. I.E. my subscriber get's sent all the elements as they come individually when there is no…
-1
votes
2 answers

Queries about ReactiveX programming with swift

A completed project in swift 3.0, I want to update it with ReactiveX frameworks for swift i.e rxSwift, rxCocoa. My point is as i'm learning reactive it is so different and new for me. But before doing this I have some question in my mind Is it…
umairhhhs
  • 400
  • 6
  • 19
-1
votes
1 answer

RxJs getting original event inside subscribe without passing down

A little pseudo code to explain the title: Subject source = new Subject(); function sendInNewResource(newNumber, anotherVariable) { source.next(newNumber); } const newSource = source .map((myNumber) => myNumber++); …
Thomas Nairn
  • 1,186
  • 8
  • 34
-1
votes
2 answers

Publish/Consume: Wait on Subscribe, filter messages and Dispose

Using Rx.Net 3 With use of the Quartz.Net Scheduler I build a workflow manager to chain jobs (using Quartz Joblistener on finished jobs) with an embedded web server. The application instantiates an instance of a Subject (singleton). A web service…
-1
votes
1 answer

How to wrap a cold observable (ReactiveX / RxJava) that always return the last result + allow refresh

I'm trying to rely on Reactive Programming to share the result of an http call with many subscribers. At the same time I want to be able to perform the call again (refresh). I start with a cold Observable that perform the http call and then…
Daniele Segato
  • 12,314
  • 6
  • 62
  • 88
-2
votes
2 answers

HTTP Request Unsubscribe doesn't work

I'm fetching the data from json file in services and subscribing it from my component. I'm doing some condition check with the data, once it matches I want to stop subscribing but it's not working and still its subscribing. Service getUserData() { …
Jagadeesh
  • 734
  • 6
  • 26
-3
votes
1 answer

How do I modify a given rxjs function?

I have this code that works just fine: (function fizzbuzz() { range(1, 31) .pipe( map(num => ({ num, val: num % 3 === 0 ? 'fizz' : '' })), map(({ num, val }) => ({ num, val: num % 5 === 0 ? val + 'buzz' : val })), …
Anubhav
  • 173
  • 2
  • 7
1 2 3
45
46