Concurrent Requests in Swift Using DispatchGroup, RxSwift and Combine

Written by altynberg | Published 2021/02/10
Tech Story Tags: swift | ios-app-development | ios-development | requests | swiftprogramming | rxswift | programming | coding

TLDR Concurrent Requests in Swift Using DispatchGroup, RxSwift and Combine can be done in three ways in Swift. I’ve created a simple project with all three methods. The source code is available here on GitHub. The project is based on a simple simple project that takes a simple movie ID and gives a movie object: getMovie. We can call the getMovie method for given IDs in parallel and get notified when we got all of the responses using the DispatchGroup. When we got the response we have to call a group.leave() method, and when all entered blocks leave the group we will be notified.via the TL;DR App

no story

Written by altynberg | Software Engineer
Published by HackerNoon on 2021/02/10