How to use Timer to exit LoopA,then run LoopB?

@Cybernetician
What is going to happen after the Arduino has been running for 10 seconds in your code?

void loop(){
while (millis() < 10000) {
LoopA();
}
while (millis() < 2000) {
LoopB();
}
}

Ooops. what a big mistake

tomorrow i post right one now i am late