Serban S
Serban S

Reputation: 95

How to check if same DataRequest is already in progress using RxAlamofire or Alamofire 5 and up?

My workflow is simple.

I don't need to make the same DataRequest 2 times and need to check wether this request is already in progress. If request is not in progress I need to make the request if some specific time has passed.

How could I achieve something like this using Alamofire ? I am using 'Alamofire', '5.2.2' and 'RxAlamofire', '5.6.2' .

Upvotes: 1

Views: 115

Answers (1)

Daniel T.
Daniel T.

Reputation: 33967

I would implement this using interval and flatMapFirst.

Upvotes: 0

Related Questions