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

Break apart request and response #1075

Open
caspervonb opened this issue Aug 3, 2023 · 0 comments
Open

Break apart request and response #1075

caspervonb opened this issue Aug 3, 2023 · 0 comments
Labels
enhancement Enhancement to existing functionality needs info Additional info is needed

Comments

@caspervonb
Copy link
Collaborator

Use case

In some cases, you may want to shoot off a bunch of requests and defer processing the responses til later.

Proposed change

Introduce a Response<T = Message> type, this type would either be a future or into_future.

let response = client.request(...).await?; // Waits for the completion of the send.
let message = response.await?; // Waits for the receiving channel to get a message

Who benefits from the change(s)?

Users wanting to not wait for responses immediately

Alternative Approaches

No response

@caspervonb caspervonb added enhancement Enhancement to existing functionality need information labels Aug 3, 2023
@bruth bruth added needs info Additional info is needed and removed need information labels Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing functionality needs info Additional info is needed
Projects
None yet
Development

No branches or pull requests

2 participants