Login
Roast topics
Find topics
Find it!
From:
Swift by Sundell
(Uncensored)
subscribe
Using Swift’s defer keyword within async and throwing contexts
https://www.swiftbysundell.com/articles/using-defer-within-async-and-throwing-contexts
links
backlinks
Roast topics
Find topics
Roast it!
How Swift’s defer keyword can be incredibly useful when working with code scopes that have multiple exit points, such as throwing or async functions.