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
1.1.17+bb66bba1b
Darwin 23.1.0 arm64 arm
Run the below code, which is supposed to stream data through cat.
cat
const p = Bun.spawn(['cat'], { stdin: 'pipe', stdout: 'pipe', }) const r = p.stdout.getReader() while (true) { const buf = new Uint8Array(1_000_000); const writeResult = p.stdin.write(buf); const written = await writeResult; console.log('writen', writeResult, ' => ', written); let i = 0; while (true) { const { value } = await r.read(); i += value?.length ?? 0; if (i >= written) { break; } } }
FileSink.write
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Darwin 23.1.0 arm64 arm
What steps can reproduce the bug?
Run the below code, which is supposed to stream data through
cat
.What is the expected behavior?
FileSink.write
to randomly return a promiseFileSink.write
to return a number greater than the size of the buffer I passed to itWhat do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: