Add mapConcat to Observable#1106
Conversation
d118add to
845a480
Compare
Avasil
left a comment
There was a problem hiding this comment.
Fantastic job @fchaillou - I really appreciate a scaladoc with example.
I've left some comments but I can merge it as is
| import scala.concurrent.duration._ | ||
| import scala.concurrent.{Future, Promise} | ||
|
|
||
| object MapConcatSuite extends BaseOperatorSuite { |
There was a problem hiding this comment.
It feels like we could add property based test mapConcat(f) <-> flatMap(x => fromIterable(f(x))
I'm also curious about performance difference but I can check myself later :D
There was a problem hiding this comment.
Good idea.
i can take care of that next week if you don't mind waiting
There was a problem hiding this comment.
Do you have any pointers on doing that with minitest ?
thanks
There was a problem hiding this comment.
Thanks, just pushed a test, let me know if that makes sense for you ?
There was a problem hiding this comment.
I think the test looks great :)
c39c6b6 to
44b3816
Compare
|
Thank you a lot, there are some compile errors after changing |
4d4986f to
9735f20
Compare
|
Oh, sbt kept the cache versions locally so i missed those. |
….scala Co-Authored-By: Piotr Gawryś <pgawrys2@gmail.com>
|
@Avasil @fchaillou FYI, |
|
@allantl We discussed it here: #1106 (comment) Nothing has been released yet so it's not too late if you have an idea for a better name but my head is empty |
|
In RxJava, its named as |
|
Ah, I missed it. Thank you If it already has a name in RX then we should be consistent and have an alias at the very least |
|
Hey @Avasil, |
* Add new mapConcat operator on Observable * Update monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala Co-Authored-By: Piotr Gawryś <pgawrys2@gmail.com> Co-authored-by: Piotr Gawryś <pgawrys2@gmail.com>
Hello this PR adds
on Observable
which is a shorter version of
I had to wait on the ack in the
onCompleteto make sure all elements from the last upstreamonNextare properly propagated before completing our downstream.Thank you