creates a recognition job that youconst [operation] = awaitclient.longRunningRecognize(request);
// Get a Promise representation of the final result of the jobconst [response] = await operation.promise<
因为我需要打3次不同的电话,所以我认为最好使用Promise.all,这样才能以并行的方式进行。这里的代码运行得非常好,它完全符合我的意图,然而,修改代码的人将其标记为一个错误,上面写着“您没有在这里返回承诺。要么等待,要么承诺,但不是两者兼而有之”。我真不明白他这么说是什么意思。async componentDidMount() {
// TODO: BUG!you are not returning the prom