-
-
Notifications
You must be signed in to change notification settings - Fork 244
Added collect signature for Consumer companion object (#1151) #1152
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
Conversation
Avasil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've left some comments but it looks great!
monix-reactive/shared/src/main/scala/monix/reactive/Consumer.scala
Outdated
Show resolved
Hide resolved
monix-reactive/shared/src/main/scala/monix/reactive/Consumer.scala
Outdated
Show resolved
Hide resolved
monix-reactive/shared/src/main/scala/monix/reactive/Consumer.scala
Outdated
Show resolved
Hide resolved
| * WARNING: For infinite streams the process will eventually | ||
| * blow up with an out of memory error. | ||
| */ | ||
| def toListL[A]: Consumer[A, List[A]] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L is only used in Observable to differentiate between methods returning Task and Observable, I would leave just toList in Consumer. Sorry for nitpick :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I have changed that already :)
| assert(s.state.tasks.isEmpty, "TestScheduler should have no pending tasks") | ||
| } | ||
|
|
||
| test("should return the same all consumed elements as a sequence") { implicit s => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it needs s.tick() for tests to pass and it's good to merge :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought it was passing already...
is there a better way of running minitests than "sbt project reactiveTests" andThen "sbt test"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReactiveTests is something else but I can see how it is confusing :D
reactiveJVM/testor
reactiveJVM/testOnly *NameOfTheTestClass
Avasil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you :)
No description provided.