apple / swift-async-algorithms

Async Algorithms for Swift
Apache License 2.0
3.07k stars 151 forks source link

Refactor Throttle to use the same engine style as Debounce #290

Open phausler opened 1 year ago

phausler commented 1 year ago

This re-works throttle to use the same style of state machine as debounce.

Note: all existing tests pass...

phausler commented 1 year ago

@swift-ci please test

phausler commented 1 year ago

after looking further at this - it is a 100% isomorphism to the existing code...

FranzBusch commented 1 year ago

@phausler this can be closed for now right?