Skip to content

Comments

chore (docs): update code snippets to handle race condition when resuming stream (#6224)#6230

Merged
lgrammel merged 1 commit intov5from
lg/DLuFznfq
May 8, 2025
Merged

chore (docs): update code snippets to handle race condition when resuming stream (#6224)#6230
lgrammel merged 1 commit intov5from
lg/DLuFznfq

Conversation

@lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented May 8, 2025

Background

This pull request updates the documentation for the GET handler in the resumable streams section to account for a race condition that may occur when the stream ends in-flight.

Summary

Updated the route by adding the code snippet that handles the above condition.

…ming stream (#6224)

## Background

This pull request updates the documentation for the GET handler in the
resumable streams section to account for a race condition that may occur
when the stream ends in-flight.

## Summary

Updated the route by adding the code snippet that handles the above
condition.

## Tasks

- [x] Documentation has been added / updated (for bug fixes / features)
- [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the
project root)

## Related Issues

#6052
@lgrammel lgrammel merged commit 82ef8a7 into v5 May 8, 2025
9 checks passed
@lgrammel lgrammel deleted the lg/DLuFznfq branch May 8, 2025 07:44
iteratetograceness pushed a commit to iteratetograceness/ai that referenced this pull request May 9, 2025
…ming stream (vercel#6224) (vercel#6230)

## Background

This pull request updates the documentation for the GET handler in the
resumable streams section to account for a race condition that may occur
when the stream ends in-flight.

## Summary

Updated the route by adding the code snippet that handles the above
condition.

Co-authored-by: Jeremy <git@jrmyphlmn.com>
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