I am encountering the issue that I would like to call a function when another firebase call is done entirely.
The app loads posts like usual apps do and as soon as its done loading with every single post, I would like to call the next function because calling both leads to terrible usage.
I don't want to use dispatchQueue, because in case there is weak internet for the person it would lead again to the issue of both functions working simultaneously. I can only make it happen to start the function call when the first post is loaded but for me its a necessity that every post is fully loaded before.
Any (general) advice?