Questions tagged [rxcpp]

Reactive Extensions for C++ (rxcpp) is a C++ library of algorithms that coordinate values distributed in time. rxcpp is like the STL algorithms that process values distributed in space, but for async values like network packets, IO and mouse events.

rxcpp is on github

40 questions
1
vote
2 answers

RxCpp Reactive Extensions in C++

I have a Win32 console app and i have imported the references to Rx. Intellisense allows me to do this.... using namespace System::Reactive; using namespace System::Reactive::Concurrency; using namespace System::Reactive::Disposables; using…
WebSight
  • 640
  • 2
  • 12
  • 27
0
votes
1 answer

RxCpp: Difference bewteen schedulers

For the different kind of coordination that uses a particular scheduler as described here. The available types are: identity_immediate() identity_current_thread() identity_same_worker(worker…
Nyaruko
  • 4,329
  • 9
  • 54
  • 105
0
votes
0 answers

Send sequential Http Request using RxCpp Observables

How can I send sequential HTTP Request using RxCpp. I need to send 1 messages and based on the response send some more requests to another API. rxcpp::observable<>::create([&](rxcpp::subscriber out) { try …
MH Alikhani
  • 110
  • 7
0
votes
1 answer

How to "map" a function returning a Future

Lets say you have a coroutine returning a task (using winrt to illustrate) winrt::Windows::foundation::IAsyncOperation my_coroutine(int i) { co_await winrt::resume_background(); Sleep(std::max(4 - i, 0)); co_return i; } and you want to…
Tom Huntington
  • 2,260
  • 10
  • 20
0
votes
1 answer

What is the latency in RxCpp?

I am looking for information on native latency of processing event streams using RxCpp library, i.e. what is the library overhead of processing one simple message (for example, a pointer to an object)? How much time passes from an event being…
S.V
  • 2,149
  • 2
  • 18
  • 41
0
votes
1 answer

Drogon C++ Multiple Database Transactions with FastDbClient

Let's say I have an entity "Address" and an entity "User" which are linked in a 1-n-Relationship. The client sends all the necessary data which is evaluated in my controller function. The Controller Class declares the two required Mappers in the…
Quirynn
  • 26
  • 2
0
votes
1 answer

Rxcpp: How can I replicate the OfType operator?

I have class: class base_event; Several classes derive from it: class event_1 : base_event; class event_2 : base_event; I have an observable: observable o; I would like to subscribe to o and get event_1 and event_2 seperately.…
jc211
  • 397
  • 2
  • 9
0
votes
1 answer

ReactiveX (rx) - Apply observable on object rather than creating object inside observable

so I've tried to comprehend ReactiveX as a library for some time now and I believe I'm starting to get the hang of the fundamentals, however, there is one problem I have which I can't find a solution to in the docs... tldr: I want to either connect…
Hampfh
  • 54
  • 1
  • 7
0
votes
1 answer

RXCPP , stack overflow when I did use retry operator indefinitely in observable

I'm trying to make an observable that when an error is detected, this will be execute again, but did notice something , when "on_error()" with "retry" operator is execute, this only re-run again the Observable but, the current instance of Observable…
Whiso
  • 236
  • 2
  • 4
0
votes
1 answer

How to properly infer a generic in a rxcpp custom operator

I've created a custom rxcpp operator called validateImplementation that should simply take a generic observable stream, make some validations on the SimpleInterface and either continue or end the stream based on a certain condition (in my case the…
Ciprian
  • 1,125
  • 1
  • 9
  • 14
1 2
3