paint-brush
Concurrent Requests in Swift Using DispatchGroup, RxSwift and Combineby@altynberg
3,612 reads
3,612 reads

Concurrent Requests in Swift Using DispatchGroup, RxSwift and Combine

by Altynbek Usenbekov1mFebruary 10th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.
featured image - Concurrent Requests in Swift Using DispatchGroup, RxSwift and Combine
Altynbek Usenbekov HackerNoon profile picture
Altynbek Usenbekov

Altynbek Usenbekov

@altynberg

Software Engineer

About @altynberg
LEARN MORE ABOUT @ALTYNBERG'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Altynbek Usenbekov HackerNoon profile picture
Altynbek Usenbekov@altynberg
Software Engineer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite