Skip to content

pool: honor CleanOnFinish when rendering bars - #246

Closed
team-humaki wants to merge 1 commit into
cheggaaa:masterfrom
team-humaki:fix/pool-clean-on-finish
Closed

team-humaki wants to merge 1 commit into
cheggaaa:masterfrom
team-humaki:fix/pool-clean-on-finish

Conversation

@team-humaki

Copy link
Copy Markdown

Pool.print always rendered every bar, so CleanOnFinish only cleared the root and child bars stuck on screen after Finish().

Skip finished CleanOnFinish bars in the unix/windows pool printers and wipe leftover lines when the visible count shrinks. Added a small pool regression test.

Fixes #223

Skip finished CleanOnFinish bars in Pool.print and wipe leftover lines so they actually disappear from the pool frame.

Fixes cheggaaa#223
@cheggaaa

cheggaaa commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Closing: superseded by #249, which also stops the own writer of a bar started before Pool.Add and erases the lines of hidden bars. Thanks for the report and the first fix.

@cheggaaa cheggaaa closed this Nov 5, 2026
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.

CleanOnFinish doesn't work as intended in pool

2 participants