Skip to content

refactor(pool): simplify idle task using async/await - #812

Merged
0x676e67 merged 1 commit into
mainfrom
refactor
Jul 18, 2025
Merged

refactor(pool): simplify idle task using async/await#812
0x676e67 merged 1 commit into
mainfrom
refactor

Conversation

@0x676e67

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the idle task implementation in the connection pool from manual Future polling to async/await syntax for improved readability and maintainability.

  • Converts IdleTask from a Future implementation to an async method
  • Replaces manual deadline tracking with simpler timer resets
  • Uses futures_util::select for concurrent waiting on pool drop and sleep timers

Repository owner deleted a comment from Copilot AI Jul 18, 2025
Repository owner deleted a comment from Copilot AI Jul 18, 2025
@0x676e67
0x676e67 merged commit 808da8c into main Jul 18, 2025
6 checks passed
@0x676e67
0x676e67 deleted the refactor branch July 18, 2025 10:47
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