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

[actor] receiveLoop with state + scaladocs + tests #1126

Merged
merged 2 commits into from
Apr 7, 2025
Merged

Conversation

fwbrasil
Copy link
Collaborator

@fwbrasil fwbrasil commented Apr 4, 2025

A few improvements in the kyo-actor module. Please see comments for more details.

*
* @param f
* The function to process each received message
* @tparam A
* The type of messages being received
*/
def receiveAll[A](using Tag[A])[B, S](f: A => B < S)(using Frame): Unit < (Context[A] & S) =
def receiveAll[A: Tag](using Frame)[S](f: A => Any < S): Unit < (Context[A] & S) =
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standardizing Frame as the implicit parameter used to separate type parameter groups

}
}

"supervision" - {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've explored introducing Supervisor but it seems Kyo's regular primitives are already powerful enough to provide the same functionality in a more flexible manner

@fwbrasil fwbrasil merged commit 889b683 into main Apr 7, 2025
3 checks passed
@fwbrasil fwbrasil deleted the actor-improvements branch April 7, 2025 23:31
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