-
Notifications
You must be signed in to change notification settings - Fork 180
feat: Add terminateAndAwait to ActorSystem. #2096
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
base: main
Are you sure you want to change the base?
Conversation
3380771
to
d4c9d68
Compare
import scala.concurrent.Await | ||
terminate() | ||
Await.result(whenTerminated, atMost) | ||
} |
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.
Added two methods for both Java and Scala
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.
Lets hold off merging this for now, main reason is as @raboof stated at #2093 (comment) if we are going to this it makes sense to just call the method close()
while implementing the Java closable interface.
A close is a |
@pjfanning @raboof wdyt? |
Let's see what alternative proposals are made before choosing one. In this PR, I would prefer if the classic ActorSystem terminate was not changed so that existing users won't have a migration problem. |
OK, I was alias it with the typed one. |
@pjfanning I changed back to the old |
@mdedetrich Wdyt, if I change the |
refs: #2093