-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performStream vs performStreamLatest #95
Comments
Sure 😄 I will do my best. There are 2 variations of Now
I hope this was somewhat helpful otherwise let me know and I will try to come up with more use cases. |
As a supplement to the above, here is a concrete (but contrived) example that illustrates the difference. Let's say we have a stream like this one:
At time 1 the stream has an occurrence with the value If we apply
The function executes each IO and delivers the result as soon as it is available. If we apply
The function executes each IO but discards "old" results. Hence when If we apply
The function delivers each result in the same order that the IOs appeared. Hence when |
This is very helpful! Want me to submit a pull req to add some of this to the documentation? I get it now. Was there a typo in your explanation @paldepind? I made a picture to help see it: |
Yes!
That would be wonderful. |
I don't get the difference between them as explained in the documentation. Can you maybe give an example use case for each that highlight the differences?
The text was updated successfully, but these errors were encountered: