fix #30 OnCompleted won't be called on UniTask.ToObservable()

when UniTask.IsCompleted == true
pull/31/head
Js 2019-08-02 13:56:48 +09:00
parent 10ba7bcfde
commit 47b701eed0
1 changed files with 1 additions and 0 deletions

View File

@ -257,6 +257,7 @@ namespace UniRx.Async
public IDisposable Subscribe(IObserver<T> observer)
{
observer.OnNext(value);
observer.OnCompleted();
return EmptyDisposable.Instance;
}
}