[PR #10133] Split ThrottledFunc into Leading and Trailing variants #27922

Open
opened 2026-01-31 09:25:09 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10133

State: closed
Merged: Yes


Summary of the Pull Request

This replaces ThrottledFunc with two variants:

  • ThrottledFuncLeading invokes the callback immediately and blocks further calls for the given duration
  • ThrottledFuncTrailing blocks calls for the given duration and then invokes the callback

References

  • #9270 - ThrottledFuncLeading will allow the pane to flash immediately for a BEL, but block further BELs until the animation finished

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • Ensured scrolling still works
**Original Pull Request:** https://github.com/microsoft/terminal/pull/10133 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This replaces `ThrottledFunc` with two variants: * `ThrottledFuncLeading` invokes the callback immediately and blocks further calls for the given duration * `ThrottledFuncTrailing` blocks calls for the given duration and then invokes the callback ## References * #9270 - `ThrottledFuncLeading` will allow the pane to flash immediately for a BEL, but block further BELs until the animation finished ## PR Checklist * [x] I work here * [ ] Tests added/passed ## Validation Steps Performed * [x] Ensured scrolling still works
claunia added the pull-request label 2026-01-31 09:25:09 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27922