Skip to content

Consider using tokio::task::JoinSet instead of TaskTracker for worker management #276

Description

@coderabbitai

Problem

The server runtime currently uses tokio_util::TaskTracker for spawning and managing worker tasks. While functional, tokio::task::JoinSet is a more modern Tokio pattern that could streamline shutdown handling and provide better integration with current Tokio idioms.

Suggested Solution

Evaluate replacing TaskTracker with tokio::task::JoinSet for managing worker tasks. This could simplify the shutdown logic and align with current Tokio best practices for task management.

Context

Identified during code review of PR #262: #262

Issue: #276

Files Affected

  • src/server/runtime.rs
  • src/server/connection.rs

Related Issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions