From 47b701eed044a935bf69a4bb5e11c34d5beae5b6 Mon Sep 17 00:00:00 2001 From: Js Date: Fri, 2 Aug 2019 13:56:48 +0900 Subject: [PATCH] fix #30 OnCompleted won't be called on UniTask.ToObservable() when UniTask.IsCompleted == true --- Assets/UniRx.Async/UniTaskObservableExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/UniRx.Async/UniTaskObservableExtensions.cs b/Assets/UniRx.Async/UniTaskObservableExtensions.cs index a089093..2c5dd49 100644 --- a/Assets/UniRx.Async/UniTaskObservableExtensions.cs +++ b/Assets/UniRx.Async/UniTaskObservableExtensions.cs @@ -257,6 +257,7 @@ namespace UniRx.Async public IDisposable Subscribe(IObserver observer) { observer.OnNext(value); + observer.OnCompleted(); return EmptyDisposable.Instance; } }