We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the example code doesnt work on my machine
const fs = require('fs'); const fileNames = ['file1.csv', 'file2.csv', 'file3.csv']; const fileIndex = 0; const nextStreamAsync = () => { return new Promise((res) => { if (fileIndex === fileNames.length) { return null; } return fs.createReadStream(fileNames[fileIndex++]); }); }; const combinedStream = new StreamConcat(nextStreamAsync);
but this does
const fs = require('fs'); const fileNames = ['file1.csv', 'file2.csv', 'file3.csv']; let fileIndex = 0; const nextStreamAsync = () => { return new Promise((res) => { if (fileIndex === filesPath.length) { return res(null) } return res(fs.createReadStream(filesPath[fileIndex++])) }); }; const combinedStream = new StreamConcat(nextStreamAsync);
you should resolve the promise
The text was updated successfully, but these errors were encountered:
@mtt-artis Apologies for the delay, thanks for the catch! Feel free to submit a PR with that change and I'll take a look.
Sorry, something went wrong.
No branches or pull requests
the example code doesnt work on my machine
but this does
you should resolve the promise
The text was updated successfully, but these errors were encountered: