3 MISTAKES to avoid when using Async / Await in Swift 😌

preview_player
Показать описание
#iOS #swift #softwaredeveloper #iosdeveloper

Thank you for watching this video 🙌

Рекомендации по теме
Комментарии
Автор

⚠ There's a a slight mistake at 04:10: while it's true that the `Task.detached` won't be canceled, it would have also been the same for a regular `Task`. ⚠

v_pradeilles
Автор

Tip #2 was really good, Vincent! I never thought about where to place the guard let self. Thanks for sharing!

FloWritesCode
Автор

This is one of the most eloquent and succinct coding explanations I have found to date. Très cordialement

edwardhasted
Автор

Yesterday, i learned retain cycle from your previous videos. Today I try the Tip #2 in new sample project and I realized that the ViewModel not delocating from memory if we use the listenNotifications method as the first example. I check the ViewModel class allocation in memorygraph with everysteps to learn what's going on in the memory. Thank's for this valuable post for us !

alkincakiralar
Автор

4:10 Are you sure that a Task (A simple Task, without detached) inside a Task will cancel in a cascade way?

Foxdie
Автор

Tip #1 is interesting, however in case the refresh token is expired, it would cause a double request to get a new one. How can we avoid this with?

LucasAbijmil
Автор

What if I need to reference self. before loop? like: for await value in self.manager.$items.values {...}

madman