-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Feature: Prototype stream implementation #32
Conversation
…resorhus-master
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
This was not correctly handled in #22
Great start! 🙌 |
You are including a lot of unrelated commits. Can you properly rebase from master? |
index.js
Outdated
|
||
read(); | ||
function read() { | ||
reader.read().then(({ done, value }) => { |
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.
Use await
instead of .then
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.
Will do!
- Await
- Fix commits
Closing this PR since I couldn't fix my the issue. Will do a new PR later with tests included as well. |
Request for comments
Issue #3
{ stream: true }
..stream
API surface without making some major changes.All fetch methods can be streams, inbound and outbound network calls.