Skip to content

No easy way to send a reply to caller actor ? #176

Answered by slawlor
coldwarrl asked this question in Q&A
Discussion options

You must be logged in to vote

You can see an example in https://slawlor.github.io/ractor/quickstart/#adding-state

But the short answer is your message type needs to include the reply channel which is an RpcReplyPort<_> and the actor uses that to send the reply back.

The caller just needs to use either the call! macro or ActorRef<_>.call which will handle sending the message and waiting for the reply.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by coldwarrl
Comment options

You must be logged in to vote
1 reply
@slawlor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants