RxPY icon indicating copy to clipboard operation
RxPY copied to clipboard

Kivy scheduler is not in the library

Open mrakgr opened this issue 4 years ago • 2 comments

I want to use Rx with Kivy, but it does not come with a scheduler for it. I know from past experience that to implement the Elm pattern I will need to dispatch the closures on the event loop, and to do that I will need a scheduler for the subscribers to go through. Would the scheduler be hard to implement?

mrakgr avatar Feb 24 '21 17:02 mrakgr

Actually, I remembered wrong. Looking at one of my old implementations of the Elm pattern in F#, I see that in the past I ran into the issue of WPF not having a Rx scheduler and got around that by using the the dispatcher directly instead. Kivy has its Clock which should fill the role nicely.

So that fills my need. It might be still be good to put in a Kivy scheduler specifically in the Python Rx library, so I won't close the issue.

mrakgr avatar Feb 25 '21 12:02 mrakgr

Glad that you found a solution. Let's keep this issue open for now. Personally, I would rather move the existing schedulers to dedicated packages/repos rather than adding new schedulers in rxpy. This could be a way to ensure that they are actively maintained and tested.

MainRo avatar Mar 01 '21 21:03 MainRo