diff --git a/Sources/AsyncAlgorithms/AsyncThrottleSequence.swift b/Sources/AsyncAlgorithms/AsyncThrottleSequence.swift index 34cbc88..cec6ca8 100644 --- a/Sources/AsyncAlgorithms/AsyncThrottleSequence.swift +++ b/Sources/AsyncAlgorithms/AsyncThrottleSequence.swift @@ -77,7 +77,7 @@ extension AsyncThrottleSequence: AsyncSequence { return nil } let reduction = await reducing(reduced, element) - if clock.now - start >= interval { + if start.duration(to: clock.now) >= interval { return reduction } else { reduced = reduction