[PR #19210] Extend lead/trail edge support for throttled_func #31748

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

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

State: closed
Merged: Yes


You can now create throttled functions which trigger both on the leading
and trailing edge. This was then also ported to ThrottledFunc for
DispatcherQueues and used for title/taskbar updates.

Closes #19188

Validation Steps Performed

  • In CMD run:
    FOR /L %N IN () DO @echo %time%
    
  • Doesn't hang the UI
**Original Pull Request:** https://github.com/microsoft/terminal/pull/19210 **State:** closed **Merged:** Yes --- You can now create throttled functions which trigger both on the leading and trailing edge. This was then also ported to `ThrottledFunc` for `DispatcherQueue`s and used for title/taskbar updates. Closes #19188 ## Validation Steps Performed * In CMD run: ```batch FOR /L %N IN () DO @echo %time% ``` * Doesn't hang the UI ✅
claunia added the pull-request label 2026-01-31 09:49:18 +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#31748