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

Split server type to allow mutations while running #99

Merged
merged 5 commits into from
May 1, 2024

Conversation

sgoll
Copy link
Contributor

@sgoll sgoll commented Apr 29, 2024

Description

This PR splits the Server type into Server and ServerRunner.1 The latter handles the server's event loop (and is consumed) while the former can be used to modify variable values from different threads while the server is running.

Footnotes

  1. Feel free to suggest better names.

@sgoll sgoll force-pushed the split-server-type branch 2 times, most recently from f274b2a to c90ce40 Compare April 29, 2024 15:53
uklotzde
uklotzde previously approved these changes Apr 30, 2024
Copy link
Collaborator

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor thoughts and suggestions.

src/server.rs Outdated Show resolved Hide resolved
src/server.rs Show resolved Hide resolved
@uklotzde uklotzde merged commit a38b38b into main May 1, 2024
13 checks passed
@uklotzde uklotzde deleted the split-server-type branch May 1, 2024 21:18
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