You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: