Oddbean new post about | logout

Notes by David Bureš | export

 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 
 Does anyone out there have experience with Fedora Server just randomly shutting down and then refusing to restart properly? I swear it happens to me every month and I don’t know why. Sometimes I have to do a manual power cycle, and sometimes, not even that helps and I have to login manually (it’s a headless server).

It’s not power interruptions, I have backup power. It’s not the BIOS either. I’m thinking it might be some auto update shit.

#linux #fedora 
 My Safari is completely broken in Sonoma. Randomly, it shows this „website is too busy“ error and nothing helps apart from restarting the entire machine. My internet works fine… :(

#macOSSonoma #Safari

https://media.mstdn.social/media_attachments/files/111/192/920/497/132/208/original/b14a27cba161137f.jpeg 
 Why are mushrooms always like:
Pic 1: “The delicious mushroom”. You’re encouraged to pick them and eat them! They taste great and are full of vitamins
Pic 2: “The moron’s cap aka. The VOMITER”. Even one bite causes VIOLENT VOMITING and BLINDNESS. If you eat two bites your BALLS FUCKING EXPLODE

#mycology #mushrooms #biology

https://media.mstdn.social/media_attachments/files/111/068/665/118/997/241/original/0ebb3f3ae19fc0ca.jpeg

https://media.mstdn.social/media_attachments/files/111/068/665/235/866/363/original/645be1f4c16715eb.jpeg