Correct. The 'await' keyword can only be used inside an 'async' function. The purpose of 'await' is to pause the execution of the 'async' function until a promise is resolved or rejected. It is a way to write asynchronous code that looks and behaves like synchronous code.


原文地址: https://www.cveoy.top/t/topic/nBe1 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录