The Flaky Test That Taught Me How Swift Concurrency Actually Works
I was writing unit tests for an IntervalDebouncer — a small @MainActor class that debounces UI actions by 300ms. The test should have been trivial: @MainActor func test_debounce_shouldFireActionAfterInterval() async { var callCount = 0 self.sut.debounce…