TL;DR —
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.
[story continues]
Written by
@altynberg
Software Engineer
Topics and
tags
tags
swift|ios-app-development|ios-development|requests|swiftprogramming|rxswift|programming|coding
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: WSpNNazYykdCAAqxp2DvqH-VRyNYCgWk2CccjRmZF6k
