I've had an issue in my project where I trigger a task from a SwiftUI View with the modifier .task
. From there it calls and async function into an actor
that has a TaskGroup
that makes concurrent network calls that has a type of Void.self
. I've noticed that sometimes the TaskGroup is either never called and will no longer be called.
I'm wondering if perhaps a TaskGroup inside of an Actor that has a parent Task created outside the Actor is a problem? But it does seem to work if I change the Actor to a Class. Could someone help explain to me why this is?