Skip to content

Add ThrottledProgressAnimation to avoid too frequent animation updates #465

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

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Feb 3, 2024

Too frequent updates to the progress animation can cause flickering and can prevent kernel from reflecting the terminal size change on ioctl.

This PR introduces a new ProgressAnimation class ThrottledProgressAnimation, which throttles update frequency of underlying animation.

This will be used by swiftlang/swift-package-manager#7315 to throttle too frequent URLSession's delegation calls.

@kateinoigakukun
Copy link
Member Author

@swift-ci Please test

@kateinoigakukun kateinoigakukun force-pushed the pr-7dbd761a595384925c9a781feeac62bc4813c533 branch from b35c0c7 to cdc7534 Compare February 3, 2024 11:09
@kateinoigakukun
Copy link
Member Author

@swift-ci Please test

@kateinoigakukun kateinoigakukun force-pushed the pr-7dbd761a595384925c9a781feeac62bc4813c533 branch from cdc7534 to 60766d2 Compare February 3, 2024 12:43
@kateinoigakukun
Copy link
Member Author

@swift-ci Please test

Too frequent updates to the progress animation can cause flickering and
can prevent kernel from reflecting the terminal size change on `ioctl`.
@kateinoigakukun kateinoigakukun force-pushed the pr-7dbd761a595384925c9a781feeac62bc4813c533 branch from 60766d2 to 30fb290 Compare February 3, 2024 14:21
@kateinoigakukun
Copy link
Member Author

@swift-ci Please test

@kateinoigakukun
Copy link
Member Author

Closing in favor of swiftlang/swift-package-manager@81d16d1

@kateinoigakukun kateinoigakukun deleted the pr-7dbd761a595384925c9a781feeac62bc4813c533 branch February 5, 2024 11:40
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.

1 participant