Skip to content

review Java usage of ActorSystem #2093

@pjfanning

Description

@pjfanning

See #1419 (comment)

terminate() returns a Scala Future

In theory, users can ignore the return value from terminate() and call this:
https://pekko.apache.org/japi/pekko/current/org/apache/pekko/actor/ActorSystem.html#getWhenTerminated()

Maybe, we could also add terminateWithCompletionStage that returns CompletionStage<Terminated>?

Interestingly, the actor-typed ActorSystem has a void return type on terminate().
You have https://pekko.apache.org/japi/pekko/current/org/apache/pekko/actor/typed/ActorSystem.html#getWhenTerminated() for Java users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions