Cysharp / UniTask

Provides an efficient allocation free async/await integration for Unity.
MIT License
8.11k stars 831 forks source link

Exception not prompted when using UniTask #569

Closed long1752062104 closed 5 months ago

long1752062104 commented 5 months ago
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();
        }
    }
}