Feedback
Captured variables survive nested async suspension
- Status
- Fixed
- Fixed in
- v26.10.3
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-10-20
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Local functions that capture variables keep reading and updating the same variables when an async caller or local function suspends at Await. Nested async calls must not replace captured values with unrelated task or argument values.