Exception not prompted when using UniTask

pull/569/head
lengyue 2024-04-12 00:20:06 +08:00
parent 1895a271b7
commit db36348997
1 changed files with 7 additions and 7 deletions

View File

@ -59,13 +59,13 @@ namespace Cysharp.Threading.Tasks
return exception;
}
~ExceptionHolder()
{
if (!calledGet)
{
UniTaskScheduler.PublishUnobservedTaskException(exception.SourceException);
}
}
//~ExceptionHolder()
//{
// if (!calledGet)
// {
// UniTaskScheduler.PublishUnobservedTaskException(exception.SourceException);
// }
//}
}
[StructLayout(LayoutKind.Auto)]