-
Notifications
You must be signed in to change notification settings - Fork 38
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
Receiver<M> support #198
Comments
Ah I think message channel is that I'm looking for. Any reason this is a struct and not a trait? |
See #102. It ends up being a cleaner API and allowed us to implement broadcasting for them. |
It started as a fork yes but the codebases have massively diverged since. We:
:) |
This used to be the case and we moved away from it because it is a really quirky API. Any type can be a message now and what type to return is defined in the |
It also enables #111 cleanly which we can hopefully ship some day :) |
Thanks for the thorough answers. I did put my sherlock hat on, and found that it is still possible to put multiple actors that handle a specific message onto a collection as long as they return the same type as answers. |
Glad you got it sorted! Is there anything else or can we close this issue? :) |
Hi!
Is this a fork of actix with real async support? Seems to have a very similar api and feature set. One thing I'm missing is the receiver trait, which allows addresses to different actors that handle a specific message to be stored in a heterogenous list.
This would probably need moving the return type of the handler implementation to M: Message, which makes more sense, since currently it would be possible that two different actors return different types for the same message.
The text was updated successfully, but these errors were encountered: