Exciting #Swift 6: use typed errors thrown by concurrent functions, caught and then switched on, with @Unknown default to fail if there’s a surprise. Perfect for a strict API contract.
I’m sure you saw the addition already @natpanferova but this usage immediately sprung to mind after #SwiftGems’ first chapters 🤓
@bgannin I was excited to see this addition too! I’ve already added it to my notes for the next book update 😃