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

Implement from Node.js Streams #114

Closed
mattpodwysocki opened this issue Oct 27, 2017 · 0 comments
Closed

Implement from Node.js Streams #114

mattpodwysocki opened this issue Oct 27, 2017 · 0 comments
Assignees

Comments

@mattpodwysocki
Copy link
Contributor

IxJS version:

Code to reproduce:

Expected behavior:

Actual behavior:

Additional information:

IxJS, since it's specialty is in I/O problems, that we need explicit conversions to and from Node.js streams. This will intrinsically support backpressure as you do not pull more than you need. We already have AsyncSink which is a Node.js stream already, but we would like a more explicit approach.

export function fromReadableStream(
  stream: Readable, 
  size?: number)
: AsyncIterable<string | Buffer>;
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

No branches or pull requests

1 participant