0

Is there a difference in the speed of getting 2 firebase requests completed if one is in the completion handler of the other, or if they both are done at started at the same time?

Lewis Black
  • 957
  • 2
  • 8
  • 22
  • completion handler is good option for you but if you want to run both simultaneously then you can also add one request into background thread ... – Naveed Khan Feb 22 '17 at 09:32
  • you should take a look at some similar issues, e.g. http://stackoverflow.com/q/40385951/1459192 – x4h1d Feb 22 '17 at 09:45
  • How about a simple code example? Otherwise it may or may not depend on your use case. In the case of a nested request, the second one definitely will not start until the first one has valid data from Firebase. – Jay Feb 22 '17 at 18:53

0 Answers0