# \[Pitch\] Capturing values in async for loops

**URL:** <https://forums.swift.org/t/pitch-capturing-values-in-async-for-loops/66303>\
**Category:** Pitches\
**Tags:** concurrency\
**Created:** [July 22, 2023, 7:21pm UTC](https://forums.swift.org/t/pitch-capturing-values-in-async-for-loops/66303 "2023-07-22T19:21:13Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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/pitch-capturing-values-in-async-for-loops/66303/12 "2025-10-07T18:29:58Z")

</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/pitch-capturing-values-in-async-for-loops/66303)._
