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!: return SendError from send methods allowing replies to be received blocking #27

Merged
merged 1 commit into from
May 27, 2024

Conversation

tqwewe
Copy link
Owner

@tqwewe tqwewe commented May 26, 2024

ActorRef's send methods which receive replies now return SendResult, allowing message replies to be either received asyncronously, or blocking.

actor_ref.send(msg).await?; // Async recv
actor_ref.send(msg).blocking_recv()?; // Blocking recv

Closes #25

@vadixidav
Copy link

Probably good to be merged, but I can give this a try in a few hours with my code to see how it will work out.

@tqwewe tqwewe merged commit bff40dc into main May 27, 2024
@tqwewe tqwewe deleted the feat/blocking_recv branch May 27, 2024 08:15
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.

Sync API
2 participants