Skip to content

Don't use Scala Futures in Java APIs#1419

Closed
raboof wants to merge 1 commit intoapache:mainfrom
raboof:no-scala-futures-in-java
Closed

Don't use Scala Futures in Java APIs#1419
raboof wants to merge 1 commit intoapache:mainfrom
raboof:no-scala-futures-in-java

Conversation

@raboof
Copy link
Copy Markdown
Member

@raboof raboof commented Jul 30, 2024

Sketching out #1417 - incomplete and notably not bothering with binary compatibility yet, just to illustrate the idea.

@raboof raboof force-pushed the no-scala-futures-in-java branch from a964d1f to 9f74250 Compare August 2, 2024 13:23
Sketching out apache#1417 - incomplete and notably not bothering
with binary compatibility yet, just to illustrate the idea.
@raboof raboof force-pushed the no-scala-futures-in-java branch from 9f74250 to 90c8498 Compare August 2, 2024 14:01
@mdedetrich
Copy link
Copy Markdown
Contributor

Not sure if this is related but there are methods like actorSystem.terminate which return a Future which should instead for Java be returning a completion stage (although I am not sure of what the nice way of doing this is since there isn't an actor system dsl).

@pjfanning pjfanning added this to the 2.0.x milestone Mar 10, 2025
@He-Pin
Copy link
Copy Markdown
Member

He-Pin commented Aug 24, 2025

@raboof Would you like to continue this? AsyncRecoveryPlugin and etcs should use Java's CompletionStage.

@pjfanning
Copy link
Copy Markdown
Member

#2092 took most of what was in this PR.

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.

4 participants