Cysharp/UniTask

Exception not prompted when using UniTask

long1752062104 opened this issue · 1 comments

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();
        }
    }
}

you should await or Forget.