UI thread schedulers?
Closed this issue · 2 comments
renaudcerrato commented
Hi!
Is there any plans to write a custom scheduler for the UI thread?
tetsurom commented
Thank you for the good point!
I had no such idea, but it seemed good.
So I have added a simple interface rxqt_run_loop::observe_on_run_loop()
.
You can use this as;
QApplication app(argc, argv);
rxqt::run_loop rxqt_run_loop;
rxcpp::observable<>::range(1)
.subscribe_on(rx::observe_on_event_loop())
.take(1)
.observe_on(rxqt_run_loop.observe_on_run_loop())
.subscribe(…);
renaudcerrato commented
Sounds great! Thank you for that!