Async and Await 异步和等待 ... task.Wait await task 等待任务完成 task.Result await task 获取完成任务的结果 Task.WaitAny await Task.WhenAny 等待任务集合中的任何一个完成 ...
基于1个网页-相关网页
我可以推断出发生这种情况的原因是,等待信号,等待任务完成的任务。
From what I can deduce the reason this occurs is that the await signals that task to wait for the task to finish.
用户既可以使用实例ID来轮询该任务的状态,也可以等待任务完成时返回结果的通知。
The user can either poll the task's state using the Instance ID, or await a notification returning the result of a finished task.
在这种策略下,调用者要等待执行完成之后才能继续后续的任务。
Here the caller waits for the execution to complete before proceeding to the next task.
应用推荐