mostjs / core

Most.js core event stream
http://mostcore.rtfd.io
MIT License
403 stars 36 forks source link

Add more advanced example using async-await, pipes, etc. #295

Open sebas2day opened 5 years ago

sebas2day commented 5 years ago

Hi, I'm interested in using Mostjs but I find it difficult to find a good, somewhat "more complex" example, where it is using for instance pipes (like those in RamdaJS) in combination with async-await (or promises).

Also some implementation of a custom scheduler-task mechanism rather than the generally used newDefaultScheduler to explain the need/differences would be nice together with some logic of merges/combines/chains of streams.

What are your thoughts?

davidchase commented 5 years ago

@sebas2day you make a good point about more complex examples. Would you like to contribute some of those examples yourself?

In the meantime you can check out some wonderful examples from @briancavalier https://github.com/briancavalier/mostcore-todomvc (@most/core) https://github.com/briancavalier/most-todomvc (cujojs/most)

with regards to your second question have you had a look at the VirtualTimer? we use it when writing tests

I think another interesting implementation could be to make a rAF based timer

let me know if any of this helps but i agree we should add some more official non-trivial examples