mirror of https://github.com/Cysharp/UniTask
Exception not prompted when using UniTask
parent
1895a271b7
commit
db36348997
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue