Skip to content
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

TransformStream should allow transform algorithm to function as pull source #384

Open
wanderview opened this issue Jul 30, 2015 · 0 comments

Comments

@wanderview
Copy link
Member

Consider, I want to implement a pipe that latches the last value written to it. If many values are written before the next read then you just get the last value.

This currently cannot be implemented in TransformStream because the transformer function only has the option to enqueue or not enqueue any given chunk. There is no way to overwrite a previously enqueued chunk.

It would be nice if the transformer function could act like a pull source so it maintained its own "queue". In the latch case this would be a single value that gets overwritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants