Skip to content
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

Closed
wants to merge 13 commits into from
Closed

Feature: Prototype stream implementation #32

wants to merge 13 commits into from

Conversation

dangdennis
Copy link
Contributor

Request for comments

Issue #3

  • Implemented a basic read stream given input option { stream: true }.
  • Todo: Need help defining .stream API surface without making some major changes.
  • Todo: Callback function that will be given byte progress

All fetch methods can be streams, inbound and outbound network calls.

@sindresorhus
Copy link
Owner

Great start! 🙌

@sindresorhus
Copy link
Owner

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 }) => {
Copy link
Owner

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do!

  1. Await
  2. Fix commits

@dangdennis
Copy link
Contributor Author

Closing this PR since I couldn't fix my the issue. Will do a new PR later with tests included as well.

@dangdennis dangdennis closed this Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants