# Throttling or debouncing async sequences?

**URL:** <https://forums.swift.org/t/throttling-or-debouncing-async-sequences/49751>\
**Category:** Using Swift\
**Created:** [June 18, 2021, 11:25pm UTC](https://forums.swift.org/t/throttling-or-debouncing-async-sequences/49751 "2021-06-18T23:25:11Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![hassila](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hassila/32/22647_2.png) [@hassila](https://forums.swift.org/u/hassila)\
**Post date:** [August 24, 2023, 2:03pm UTC](https://forums.swift.org/t/throttling-or-debouncing-async-sequences/49751/13 "2023-08-24T14:03:31Z")

</div>

Also would point this out wrt throttling, it does not behave as one would expect to be useful in most cases:

> [@Surprising semantics of throttled sequences](https://forums.swift.org/t/surprising-semantics-of-throttled-sequences/65409):
>
> After some experimenting today after seeing unexpected behavior I just realized that the [throttled async stream](https://github.com/apple/swift-async-algorithms/blob/main/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Throttle.md) behaves in a quite unexpected manner. Basically the current semantics easily leads to lost Updates/wakeups. AFAICT the current semantics are that if a new event comes in within the specified throttled time on the base async sequence, it’s not forwarded. But after the specified throttled time has elapsed- it’s not forwarded either until a new event comes from the base sequence. So ba…

---

_[View the full topic](https://forums.swift.org/t/throttling-or-debouncing-async-sequences/49751)._
