-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions for Episode 3 #24
Comments
First of all nice Topic, I really like that one. 👍 It still did not click on my side about those things even though I read some articles about it already so I'd appreciate it if he could try to explain it.
And just for curiosity:
|
Thanks, @vanniktech, added! |
With RxJava, what is the best way to model a task that returns a result with progress report (0-100%) ? |
@Lakedaemon Your questions are best answered in written form: a) If you are in control of the download/computation chunks and if you can determine the progress, then you may create an b) This is a job for Observable<Pair<Integer, Object>> download(String what) { ... }
Pair<Integer, Object> zero = Pair.of(0, null);
Observable.combineLatest(
download("a").startWith(zero),
download("b").startWith(zero),
download("c").startWith(zero),
(a, b, c) -> (a.first + b.first + c.first) / 3); |
My only request is to ask questions that you think can be answered without the need to write code verbally. If you have such questions, please consider asking it on StackOverflow. There is a high chance, depending on the complexity, that I'll answer it there too, and you may not need to wait till the podcast goes out. |
Testing: |
Thanks for the answer and also, you are right, I should have asked this on stack overflow instead, this question wasn't a good one for The Context. |
@dbacinski thanks, added (even though it's more about using a specific API there is a theoretical part in your question which we can discuss) @Lakedaemon looks like David answered your question, my suggestion will be pretty much the same though I'd probably just emit progress as number and payload will be usually persisted on disk to prevent OOM, though |
I have a question (probably it's too advanced, so I wouldn't mind if you could not answer that during the podcast because it doesn't fit in) What is the reason that I can only specify I also think that the API is "inconsistent" here, since you can call |
@sockeqwe good one, and I believe it's worth to discuss it in the podcast, I'll try to ask this during About overriding |
👍 |
What is the best way to test currect (exact) order of emitted results in JUnit? |
@sockeqwe 👍 I'm also interested in the @artem-zinnatullin thanks for also adding |
We've recorded the episode, answered most of these questions + dive into RxJava history, hope to release it in a few days! |
It'll be an episode mostly about RxJava and other Reactive things.
Guest is @akarnokd, one of the core developers of RxJava! David is most active developer of RxJava for last ~8 month (or more), also, he started development of RxJava 2 and works on some other Reactive libraries.
It'll be something like QA session, almost everything you wanted to know about RxJava can be discussed in this episode, so please submit questions: RxJava APIs, implementation details, performance, memory consumption, v2, other Reactive technologies, etc, etc
Current list of questions (order may be changed):
Schedulers.computation()
is bottleneck? Threads count == cpu cores count and this scheduler is default for all time related operators…Schedulers
implementations into the library was good idea?Please submit your questions! (just check that there is no such question in the list above first)
UPD from @akarnokd:
The text was updated successfully, but these errors were encountered: