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

fix: Improved the isTerminated semantics to be based on the ActorCell instead of the Mailbox #31

Merged

Conversation

Mitrug
Copy link
Contributor

@Mitrug Mitrug commented Nov 5, 2024

Description

In this previous PR, I modified the DeadLetterMailbox.isClosed method to always return true instead of false to align with how Dispatcher.isTerminated checked the mailbox status to determine an actor's liveliness. However, semantically, this was incorrect because a dead-letter mailbox should never be considered closed.

This PR reverts that change and relocates the isTerminated method from Dispatcher to ActorCell. The new logic for isTerminated now correctly checks if the actor has been successfully terminated.

Additionally, I have included tests for the TestKitSpec.within method.

Massimo Saliba added 3 commits November 5, 2024 12:07
…is never closed. Moved the isTermination to the ActorCell and added a terminated state. Added tests for within in the TestKitSpec.
@cloudmark cloudmark merged commit 9a35465 into suprnation:main Nov 19, 2024
1 check failed
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.

2 participants