Is there a way to just straight-up force terminate a `.task` in SwiftUI? I'm not saying "ask it to please terminate when it's convenient 🥺", I mean "kill yourself right now and throw an error"
I'm running into a problem where I have some resource-intensive tasks that the user might want to kill, completely disregarding their current state. I tried looking it up, and every tutorial I've found is about the former variety. It might not be a best practice, but I swear I have a use case
#swift
I think you can add an Id to the task modifier and changing it, it will cancel the task…