-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add decodeStream #46
Add decodeStream #46
Conversation
d100436
to
059dbff
Compare
…ecodeStream # Conflicts: # src/decodeAsync.ts
src/Decoder.ts
Outdated
|
||
try { | ||
while (true) { | ||
let result = this.decodeSync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let result = this.decodeSync(); | |
const result = this.decodeSync(); |
for await (let item of decoder.decodeArrayStream(stream)) { | ||
yield item; | ||
} | ||
return decoder.decodeArrayStream(stream); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
test/decodeStream.test.ts
Outdated
|
||
const result = []; | ||
|
||
for await (let item of decodeStream(createStream())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for await (let item of decodeStream(createStream())) { | |
for await (const item of decodeStream(createStream())) { |
fixed @gfx |
Codecov Report
@@ Coverage Diff @@
## master #46 +/- ##
=========================================
Coverage ? 93.45%
=========================================
Files ? 15
Lines ? 840
Branches ? 175
=========================================
Hits ? 785
Misses ? 29
Partials ? 26
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
No description provided.