Exception not prompted when using UniTask

pull/569/head
lengyue 2024-04-12 00:00:42 +08:00
parent 88ecfa2992
commit 1895a271b7
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,10 @@ namespace Cysharp.Threading.Tasks
{ {
continuation(continuationState); continuation(continuationState);
} }
else
{
UniTaskScheduler.PublishUnobservedTaskException(error);
}
return true; return true;
} }