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

fix: add Send bound to Streaming wrapper #63

Merged
merged 3 commits into from
Nov 18, 2024
Merged

Conversation

infiniteregrets
Copy link
Member

useful for moving ownership to the spawn closure,

let mut response_stream = client.append_session(request).await?;

    let response_consumer = tokio::spawn(async move {
        while let Some(n) = response_stream.next().await {
            if let Err(e) = n {
                error!(?e, "receiver error")
            }
        }
    });

@infiniteregrets infiniteregrets requested a review from a team as a code owner November 18, 2024 01:51
src/service.rs Outdated Show resolved Hide resolved
@infiniteregrets infiniteregrets merged commit c36fb38 into main Nov 18, 2024
2 checks passed
@infiniteregrets infiniteregrets deleted the send-bound branch November 18, 2024 02:11
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.

2 participants