The Result Type

One of the downsides with completion handlers and asynchronous networking code is that we have to use optional types which leads to necessary nils and unwrapping. We can improve upon this by using a simple concept known as the result type. In this video, let's use our knowledge of generics to improve our networking code