-
Notifications
You must be signed in to change notification settings - Fork 35
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
Help: notify_all not clear #106
Comments
Thanks! There are a lot of nice API changes coming in the next release that should make various use cases simpler. In particular, latest master already has a You can run multiple actors on one |
Thanks for the info! I'll be waiting for the next release then :-) Keep it up! |
If the recipients of your messages are different actors then the You could also use |
The relevant example is message_stealing.rs. It is probably worth adding some pointers somewhere around |
Thank you for the replies, will definitely have a better look :) |
Just as an FYI: We are hanging out in https://matrix.to/#/#xtra-community:matrix.org if you want to follow along more closely with the current development. |
would've been joined if it were a discord, but I really don't use matrix (nor heard of it before). also, I don't think I'll be helpful that much, because I'm fairly new to rust:) |
Hey there! First of all, wanted to say thanks for this great library, tried many actor frameworks so far, but sticking with
xtra
due to its simplicity, speed, and easy handling of async/await :-)I have a question about
notify_all
method, which is not clear to me. It says to notify the message to all of the actors running with the same address, but I wasn't able to figure out how to register two actors at the same address.My goal is the following: I have some actor, which accepts messages, but also broadcasts (via notify_all) messages (like events). The only way I found to do this is to call
clone_channel
and pass it to the actor itself so the actor can call it later (vector ofMessageChannel
).So there are two questions:
notify_all
?xtra
such it will notify all the actors that have handlers for the Message for example?Thank you!
The text was updated successfully, but these errors were encountered: