core icon indicating copy to clipboard operation
core copied to clipboard

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

Open sebas2day opened this issue 6 years ago • 1 comments

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?

sebas2day avatar Jul 11 '19 05:07 sebas2day

@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

davidchase avatar Jul 23 '19 14:07 davidchase