原文链接:
http://www.stevevermeulen.com/index.php/2017/09/using-async-await-in-unity3d-2017/
“Never call `async Task` methods without also awaiting on the returned Task. If you don’t want to wait for the async behaviour to complete, you should call an `async void` method instead.”
如果想要不用await调用async函数。
当函数为async task 时,unity3d console中不会打印任何异常。(给调试带来麻烦)
如果想在unity3d console中显示异常,需要将被调用的函数类型改为async void。