Fix: UniTask(not generics).ToObservable does not return error when task

Fix: UniTask(not generics).ToObservable does not return OnError when task status is already faulted or canceled
master
neuecc 2021-03-02 15:16:00 +09:00
parent cdda33a98e
commit 308fef2859
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ namespace Cysharp.Threading.Tasks
{ {
try try
{ {
task.GetAwaiter().GetResult();
return new ReturnObservable<AsyncUnit>(AsyncUnit.Default); return new ReturnObservable<AsyncUnit>(AsyncUnit.Default);
} }
catch (Exception ex) catch (Exception ex)