Async call to a func defined in extension from an isolated function in an actor preserves the isolation?
I have this setup:
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?