Skip to content

Use java.util.concurrent.Flow instead of Reactive Streams - #736

Draft
mkurz wants to merge 1 commit into
playframework:mainfrom
mkurz:use-java-flow-api
Draft

mkurz wants to merge 1 commit into
playframework:mainfrom
mkurz:use-java-flow-api

Conversation

@mkurz

@mkurz mkurz commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Replaces the org.reactivestreams types (Publisher, Subscriber, Subscription, Processor) with their java.util.concurrent.Flow counterparts and drops the dependency on org.reactivestreams:reactive-streams. Only imports change in the library code. The tests now use reactive-streams-tck-flow and Pekko's JavaFlowSupport.

This will not be merged anytime soon. The rest of the ecosystem has not switched to Flow yet:

Until they switch, this change would only move the conversion into Play while breaking every direct user of this library.

Breaking change: all public types change their supertypes or signatures, which breaks source and binary compatibility. A release would need a new major version (4.0.0); the version has not been bumped yet.

🤖 Generated with Claude Code

Replace the org.reactivestreams Publisher, Subscriber, Subscription and
Processor types with their java.util.concurrent.Flow counterparts and
drop the dependency on org.reactivestreams:reactive-streams. Tests now
use reactive-streams-tck-flow and Pekko's JavaFlowSupport.

This changes the signatures of all public types and breaks source and
binary compatibility.

Based on playframework#173.

Fixes playframework#172

Co-authored-by: Erlend Hamnaberg <erlend@hamnaberg.net>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Flow Java api and drop support for reactive-streams

1 participant