Does a return statement in the try block wait for an await statement in the finally block?

前端 未结 0 629
醉梦人生
醉梦人生 2021-01-27 00:57

Consider the following snippet:

try {
    const client = getClientThatMustBeClosed();
    const data = await shortRunningOperation(client);
    return Promise.res         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题