-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
feat: implement stream.onAbort
#1795
Conversation
Hi, @yusukebe |
Thanks! I'll check this later! |
Hi @sor4chi This is a great work! It works fine on Node.js and Deno. One thing you need to consider is that this behavior is changed from the current release version. The code: app.get('/stream', (c) => {
return c.streamText(async (stream) => {
for (;;) {
await stream.writeln('Hello')
console.log('Hello')
await stream.sleep(1000)
}
})
}) The current version: This PR: Could you take a look? |
@yusukebe I will certainly have to fix this, but it will take some time. |
@HeyITGuyFixIt |
waiting for #1846 |
Hi, @yusukebe |
I do not know. I can look into it myself, but I would prefer to leave it to you. |
As for the change that writing to the readable stream is terminated in the middle and no further processing is performed, I would like to proceed as is because the original implementation was poor and I think that changing this behavior in the first place will have little effect on users. |
Okay! Let's go with this spec, which is implemented in this PR. |
961d79f
to
2637171
Compare
@yusukebe |
ref: #1770
Author should do the followings, if applicable
yarn denoify
to generate files for Deno