We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417b466 commit a7b917dCopy full SHA for a7b917d
packages/trie/src/util/readStream.ts
@@ -1,3 +1,4 @@
1
+import { ReadableStream } from 'node:stream/web'
2
import { Readable } from 'readable-stream'
3
4
import { BranchNode, LeafNode } from '../node/index.js'
@@ -14,6 +15,8 @@ export class TrieReadStream extends Readable {
14
15
constructor(trie: Trie) {
16
super({ objectMode: true })
17
18
+ const s = new ReadableStream()
19
+ void s.cancel()
20
this.trie = trie
21
this._started = false
22
}
0 commit comments