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 creation - use ToMessage<M> #62

Merged
merged 2 commits into from
May 10, 2023
Merged

actor creation - use ToMessage<M> #62

merged 2 commits into from
May 10, 2023

Conversation

JohnMurray
Copy link
Owner

@JohnMurray JohnMurray commented May 10, 2023

Summary

Use ToMessage<M> when creating an actor.

Motivation

  • Matches the API for sending messages
  • Additional ergonomic benefits to values passed in, particularly for primitives.

This has an ergonomics cost, however, in the signature now having three generics. Adding this to my punch-list of ergonomics issues to revisit later.

Test Plan

  • Examples
  • doc-tests (more examples)

@JohnMurray JohnMurray merged commit 7eee627 into main May 10, 2023
@JohnMurray JohnMurray deleted the to-message-init branch May 10, 2023 21:01
@JohnMurray JohnMurray mentioned this pull request May 19, 2023
6 tasks
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.

1 participant