fix #30 OnCompleted won't be called on UniTask.ToObservable()
when UniTask.IsCompleted == truemaster
parent
10ba7bcfde
commit
47b701eed0
|
@ -257,6 +257,7 @@ namespace UniRx.Async
|
||||||
public IDisposable Subscribe(IObserver<T> observer)
|
public IDisposable Subscribe(IObserver<T> observer)
|
||||||
{
|
{
|
||||||
observer.OnNext(value);
|
observer.OnNext(value);
|
||||||
|
observer.OnCompleted();
|
||||||
return EmptyDisposable.Instance;
|
return EmptyDisposable.Instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue