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

Spawn query_chat #26

Open
wants to merge 1 commit into
base: 03-spawn-a
Choose a base branch
from
Open

Spawn query_chat #26

wants to merge 1 commit into from

Conversation

willcrichton
Copy link
Contributor

@willcrichton willcrichton commented Jul 31, 2024

Reference solution for fixing the compute-intensive chat. Key changes:

  • Use tokio::spawn to launch the query_chat future
  • Use Arc to share messages between threads without cloning

@willcrichton willcrichton force-pushed the 03-spawn-a branch 2 times, most recently from 4f469e5 to b4a7777 Compare September 4, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant