Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
streams are cool
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 6, 2023
1 parent 63821ff commit 715dc64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/async/deserializeAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ export function createTsonParseAsyncInner(opts: TsonAsyncOptions) {
onDone() {
try {
controller.close();
streamByIndex.delete(idx);
} catch {
// ignore
} finally {
streamByIndex.delete(idx);
}
},
stream: readableStreamToAsyncIterable(stream),
Expand Down

0 comments on commit 715dc64

Please sign in to comment.