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

feat!: use owned actor ref in spawn_with function #68

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

tqwewe
Copy link
Owner

@tqwewe tqwewe commented Oct 16, 2024

The spawn_with function previously provided &ActorRef<A> as an argument, which was good for performance, however will always need to be cloned into the returned future. Without cloning, you'd get some annoying compile errors.

This PR makes it an owned ActorRef<A> to simplify the usage of spawn_with.

@tqwewe tqwewe merged commit 430c449 into main Nov 15, 2024
2 checks passed
@tqwewe tqwewe deleted the feat/spawn_with_update branch November 15, 2024 14:04
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