-
Notifications
You must be signed in to change notification settings - Fork 15
SFlux does not have apply(JFlux) #32
Comments
@zackman0010 the ScalaConverters class adds implicit asScala methods to JFlux and JMono, so you can do like:
|
Or another shortcut is |
Thank you, I somehow missed that one when I was looking through SFlux last night. |
@sinwe If I submitted a merge request to add another apply method to SFlux that simply calls the fromPublisher method, which is the same thing that SMono's apply does, would it be accepted? |
@zackman0010 You can try and raise PR. I'm not sure if that would be working because of below
When you do But it'd be nice if it works because that'll make it consistent with |
You raised a good point, so I went to a scratch sheet to test it out. It looks like, if there's both a T* and a more specific apply function available, it will use the more specific one over the T* one. Not shown in this screenshot is the final test I did where I did not explicitly define the result type ( The test I added on #34 also passed successfully |
Thanks... I’ll merge your PR soon and I’ll cut a release soon as we’ve got couple of PRs merged to master |
Released on v0.4.6 |
The SFlux class does not have an apply method that takes a JFlux. This means that, with the removal of the deprecated Flux, there is no longer a way to convert a JFlux to an SFlux.
The text was updated successfully, but these errors were encountered: