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: https://www.youtube.com/watch?v=-JLenSTKEcA
Previous video: https://www.youtube.com/watch?v=epBbbysk5cU
37 Comments