Skip to content

Commit

Permalink
fix: buffered map continuing on stream end
Browse files Browse the repository at this point in the history
  • Loading branch information
andogq committed Jul 16, 2024
1 parent 7dd7ac6 commit 2c8238d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-trees-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"windpipe": patch
---

fix: buffered map continuing on stream end
1 change: 1 addition & 0 deletions src/stream/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export class StreamTransforms<T, E> extends StreamConsumption<T, E> {

// Once the async iterator is exhausted, indicate that there will be no more items
end = true;
itemReadySignal.done();
})();

// Create the resulting stream by pulling a value from the buffer whenever one is requested
Expand Down

0 comments on commit 2c8238d

Please sign in to comment.