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: impl IntoFuture for requests #72

Merged
merged 6 commits into from
Oct 20, 2024
Merged

Conversation

tqwewe
Copy link
Owner

@tqwewe tqwewe commented Oct 20, 2024

Ask and tell requests can now be awaited directly, eliminating the need for .send().await. This change simplifies the API while retaining the same functionality.

Before:

actor_ref.tell(MyMessage).send().await?;

After:

actor_ref.tell(MyMessage).await?;

The previous syntax remains valid but is now unnecessary, making the code cleaner and more intuitive.

@tqwewe tqwewe merged commit b577da9 into main Oct 20, 2024
2 checks passed
@tqwewe tqwewe deleted the feat/impl-into-future-requests branch October 20, 2024 08:44
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.

1 participant