Relative Content

Tag Archive for swiftactorstructured-concurrency

Mutating async function on actor-isolated property

I need to store the AsyncIterator of a ThrowingTaskGroup for later use. I’m creating this iterator inside of an async function inside of an actor. However, as the resulting iterator is a value type, I cannot store and later access it outside of the scope of the current function.
Is there something inherently wrong with my approach?