Skip to content

Conversation

@Paraworker
Copy link
Contributor

I’ve been reading through the compio source code and noticed that some parts of the logic are a bit hard to follow. I’d like to refactor several parts to improve readability and long-term maintainability.

This PR simplifies the control flow of the RunnableQueue::run() by replacing nested conditionals and flag variables with a tuple match, making the logic easier to reason about.

Copy link
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

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

LGTM. @Berrysoft wdyt.

Copy link
Member

@Berrysoft Berrysoft left a comment

Choose a reason for hiding this comment

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

Thanks!

@Berrysoft Berrysoft merged commit 346d25a into compio-rs:master Oct 17, 2025
48 checks passed
@Paraworker Paraworker deleted the refactor/runnable-queue-run branch October 17, 2025 06:03
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.

3 participants