Skip to content

docs(streaming): use !stream.aborted in SSE example#865

Merged
yusukebe merged 1 commit into
honojs:mainfrom
tim775:patch-1
May 25, 2026
Merged

docs(streaming): use !stream.aborted in SSE example#865
yusukebe merged 1 commit into
honojs:mainfrom
tim775:patch-1

Conversation

@tim775

@tim775 tim775 commented May 25, 2026

Copy link
Copy Markdown
Contributor

I think while (!stream.aborted) is better for the example since while (true) keeps the loop going even after the client is gone, leaking work on every disconnect.

I think while (!stream.aborted) is better for the example since while (true) keeps the loop going even after client gone, leaking work on every disconnect.

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@yusukebe

Copy link
Copy Markdown
Member

@tim775 Thanks!

@yusukebe yusukebe merged commit 3593c79 into honojs:main May 25, 2026
2 checks passed
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.

2 participants