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

Can Caller be Clone? #52

Open
ejmount opened this issue May 25, 2022 · 1 comment
Open

Can Caller be Clone? #52

ejmount opened this issue May 25, 2022 · 1 comment

Comments

@ejmount
Copy link

ejmount commented May 25, 2022

Since Caller is the equivalent of a channel's Sender, I would expect to be able to freely clone it. I am aware that I can get around this if I have access to the underlying Addr, but I would like to avoid that so that my code can be abstract over the exact type of the actor that actually implements the Caller I'm after. (And deal with collections of Caller<T> with heterogenous implementators)

@jracollins
Copy link
Contributor

Hi @ejmount - I have a PR awaiting a approval with this functionality (along with other fixes) to be merged: #51

You can update your Cargo.toml file to my fork to use, or just fork it yourself and point to your repo like so:

xactor = { git = "https://github.com/jracollins/xactor", branch = "various-updates" }

@sunli829 - would you be able to spare a moment to review/merge/publish my changes?

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

No branches or pull requests

2 participants