composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
864 stars 66 forks source link

Time related combinators #143

Open harendra-kumar opened 5 years ago

harendra-kumar commented 5 years ago

We deal with two sequencing dimensions user specified ordering of stream and time ordering of stream. For example, the Ahead stream return values in the user specified sequence whereas the Async stream merges the events in time order. We have defined combinators that deal with sequence but we also need to define corresponding combinators that deal with time. #101 describes one such combinator takeTimed that corresponds to the regular take combinator. We need to define more such combinators in general corresponding to regular combinators that make sense in the time dimension.

harendra-kumar commented 5 years ago

Maybe we can put these in a separate Time module so that we can give them exactly the same names as corresponding regular combinators. For example:

Another naming alternative is to use the t prefix just like we use the i prefix on index based combinators.

adithyaov commented 4 years ago

Current development on PR #331