Exception not prompted when using UniTask
long1752062104 opened this issue · 1 comments
long1752062104 commented
using Cysharp.Threading.Tasks;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
Test();
Console.ReadLine();
}
static async UniTask Test()
{
await UniTask.Yield();
throw new Exception();
}
}
}
neuecc commented
you should await or Forget.