mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 19:40:09 +00:00
fix #30 OnCompleted won't be called on UniTask.ToObservable()
when UniTask.IsCompleted == true
This commit is contained in:
@@ -257,6 +257,7 @@ namespace UniRx.Async
|
||||
public IDisposable Subscribe(IObserver<T> observer)
|
||||
{
|
||||
observer.OnNext(value);
|
||||
observer.OnCompleted();
|
||||
return EmptyDisposable.Instance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user