It is not often when we need to wrap an async function with a completion handler. Typically, the reverse is what happens. This need can happen in codebases where the public interface canโt change just right now, but internally it is moving towards async-await functions. Letโs jump in and see how to wrap an async […]
When it comes to calling completion handlers for asynchronous operations, the established convention within the Apple developer community has for long been to simply continue executing on whatever DispatchQueue that the operation itself (or at least its final part) was performed on. For example, when using the built-in URLSession API to perform a data task-based […]