Skip to content
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

Reactive-streams interop is uncancelable #3260

Open
Jasper-M opened this issue Jul 17, 2023 · 3 comments · May be fixed by #3446
Open

Reactive-streams interop is uncancelable #3260

Jasper-M opened this issue Jul 17, 2023 · 3 comments · May be fixed by #3446
Labels

Comments

@Jasper-M
Copy link
Contributor

The implementation still uses an uncancelable async_ call which will hang on CE 3.5:

F.async_[Either[Throwable, Option[Chunk[A]]]] { cb =>

The java flow interop is fixed, but the fix hasn't been released yet.
Since the reactive-streams interop seems to be deprecated in favor of the flow interop, perhaps just releasing the fixed flow interop is sufficient? Though I noticed that the compiler doesn't seem to actually show any deprecation warnings.

@Jasper-M Jasper-M added the bug label Jul 17, 2023
@armanbilge
Copy link
Member

Since the reactive-streams interop seems to be deprecated in favor of the flow interop,

Well, yes and no. reactive-streams is the only option available on JDK8, flow was introduced in JDK9.

Though I noticed that the compiler doesn't seem to actually show any deprecation warnings.

We implemented as a "soft" deprecation that only appears in scaladocs. This is because hard-deprecating would leave JDK8 users out in the cold.

@Jasper-M
Copy link
Contributor Author

Ah ok that makes sense.

@armanbilge
Copy link
Member

armanbilge commented Jan 24, 2024

Just to give a more concrete action for anyone hitting this issue: if you are on JDK 9+, please switch to the FS2 Flow interop and if necessary use the official Reactive Streams FlowAdapters.

There is no reason to use the FS2 Reactive Streams interop anymore unless you are stuck on JDK 8.


Edit: for the record, a PR to fix FS2 Reactive Streams interop is welcome, if anyone feels so inclined :)

@i-surkov i-surkov linked a pull request Jun 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants