A crash is exactly that, the app crashes immediately. When an error is thrown the app continues to run and can handle the error
Post
Replies
Boosts
Views
Activity
Hi
My question had nothing to do with the assert, I just wanted to understand the code better since the non-generic version worked and now I understand it better. I don't know if you are interested in testing this but I was thinking that maybe it's the associated type that causes the issues so one alternative to get would be to use MyModelProtocol instead for the generic type
func addRecord<T: MyModelProtocol>(_ someDTO: T, recordName: String) async throws { ... }