i was wandering if there is a way to “sync” the order of the download of some files.
my situation is this:
- 2 files needs to be written from a SOAP request as JSON files
- 1or 2 files need to be downloaded from https request
- 1file needs to be updated as sqlite database
what i was looking for is for a way to set some “priority” of downloading (syncing), so if the firs of the 2 files from SOAP hasn’t finished, the second won’t start, and if the second one hasn’t finished yet, the https download won’t start and so on…
is there a way to say “wait until it finishes, and everything is ok”?!
sorry if it’s not so clear