In Promise, no matter where the resolve is, is it always executed last?

in Promise, no matter where the resolve is, is it always executed last? Who can talk about the operating mechanism, or share a link. Thank you! the
code is as follows:

actions.getForbiddenFuncList = function(context){
  return new Promise((resolve, reject) => {
    serverUtils.getData(serverUtils.GETFORBIDDENFUNCLIST,null,(resData)=>{
      if(resData.success){
        resolve();
        console.log("1")
        context.commit("SETFORBIDEENFUNCLIST", resData)
        console.log("2")
        console.log("3")
      }
    });
  })
}
mutations.SETFORBIDEENFUNCLIST = function (state, data) {
    console.log("SETFORBIDEENFUNCLIST, 1");
    // ,.....
    console.log("SETFORBIDEENFUNCLIST, 2");
}
actions.initData = function(context,payload) {
  actions.loadControl(context,{ show: true });
  serverUtils.getData(serverUtils.GETBYID,{id: payload.id},function(data) {
    if (data.success) {
      actions.getForbiddenFuncList(context).then(() => {
        console.log("a")
        context.commit("INITDATA", data.data);
        console.log("b")
        actions.getQuestionData(context,data.data.questionUrl);
        actions.checkSliceUpdate(context,payload);
      });
    }
  });
}

run result:

clipboard.png

May.29,2021

is not the last execution of resolve , it is the execution of this pile of Synchronize code that event loop detects microtask .
Js event loop


js event loop learn about

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c1ae-44e9c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c1ae-44e9c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?