Open darthdeus opened 3 years ago
Hello, although this issue has been opened some time ago and I'm not going to address the README part, I'd like to mention, that you can Dispose() observables in MonoBehaviour.OnDestroy() to stop this unwanted behavior.
Using UniRx.DisposableExtensions.AddTo
helps in this case.
Running the following causes the observable to keep running even after exiting play mode. If I run the game repeatedly it continues to spawn more observables and they all keep logging.
The README says
which makes sense, but at least personally I find it surprising that the observable keeps running even after play mode is exited. Is this actually intentional? If it is, it might be worth adding a note to the README about this behavior. (If I knew how exactly it behaves I'd gladly make a PR, but I'm not really sure what is supposed to happen).