Try {
UpdateStudent (student);
UpdateStudent (student1);
UpdateStudent (student2);
}...
CodePudding user response:
I use the debug appears to be in accordance with the order, and I don't know whether that isCodePudding user response:
General situation is executed according to the normal order, unless you updateStudent is executed asynchronously, print the log can see the execution orderCodePudding user response:
Is isCodePudding user response:
If method updateStudent opened the multithreading and no awaitTermination inside, or call the asynchronous method, not in sequence, or order,