How to use Continuations in Swift (withCheckedThrowingContinuation) | Swift Concurrency #7

Continuations are a super-handy addition to the Swift language that allows us to convert code that is not created for an asynchronous context into code that can easily be integrated into our async/await methods. In this video, we will look at withCheckedThrowingContinuation and convert some @escaping closures into our Swift Concurrency code. This is perfect for SDKs and APIs that are not yet updated for Swift Concurrency! API: https://picsum.photos/300 Next video:    • Swift: Struct vs Class vs Actor, Value vs ...   Previous video:    • How to use TaskGroup to perform concurrent...   🤙 WELCOME BACK 🤙 WEBSITE: https://www.swiftful-thinking.com DISCORD:   / discord   GITHUB: https://github.com/SwiftfulThinking/ SAY THANKS: https://www.buymeacoffee.com/nicksarno