# AsyncSequence version of notifications is causing memory leaks

**URL:** <https://forums.swift.org/t/asyncsequence-version-of-notifications-is-causing-memory-leaks/77257>\
**Category:** Using Swift\
**Tags:** concurrency, actors, asyncsequence\
**Created:** [January 17, 2025, 11:16am UTC](https://forums.swift.org/t/asyncsequence-version-of-notifications-is-causing-memory-leaks/77257 "2025-01-17T11:16:35Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![nonameplum](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nonameplum/32/6450_2.png) [@nonameplum](https://forums.swift.org/u/nonameplum)\
**Post date:** [October 7, 2025, 6:29pm UTC](https://forums.swift.org/t/asyncsequence-version-of-notifications-is-causing-memory-leaks/77257/22 "2025-10-07T18:29:39Z")

</div>

For anyone interested, I created an [SPM package](https://forums.swift.org/t/distinction-between-isolated-any-and-inheritactorcontext/75730/13) with an improved version of `withLifetime` . more here: [Distinction between `@isolated(any)` and `@_inheritActorContext` - #13 by nonameplum](https://forums.swift.org/t/distinction-between-isolated-any-and-inheritactorcontext/75730/13)

---

_[View the full topic](https://forums.swift.org/t/asyncsequence-version-of-notifications-is-causing-memory-leaks/77257)._
