I have splash screen with animation, the animation must be complete then move to the next screen, while doing this I do some api calls and app data setup, I tried to put timeout but other http calls could get earlier .. so animation doesn't complete, I tried to put delay but this will increase the animation time. how to control the stream so if it's passed specific time it will complete the stream.