Skip to content

chore: Say how abortIn applies while a stream is read, and leave out setAccessible in the tests. - #186

Merged
goloroden merged 3 commits into
mainfrom
185-abort-within-loop-set-accessible
Oct 23, 2026
Merged

goloroden merged 3 commits into
mainfrom
185-abort-within-loop-set-accessible

Conversation

@goloroden

@goloroden goloroden commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

The README now says how abortIn applies while a stream is read. A request sent within the loop over a stream, such as a write for each observed event, is aborted through a second client, since abortIn of the client that reads the stream applies to that stream. And a stream counts as being read as long as its iterator is kept, also once its loop was left with break, so an abortIn meant for the next request needs the iterator released first. The client cannot tell a loop that is left from one whose body runs, since the generator waits at the same yield in both; an abort time on the iterator or per call would have been new API for it.

The tests no longer call ReflectionProperty::setAccessible(), which has had no effect since PHP 8.1 and made the tests print deprecation notices on PHP 8.5.

Closes #185

🤖 Generated with Claude Code

https://claude.ai/code/session_01CiuYmw4N6SSzfFyrwftUEj

goloroden and others added 2 commits October 23, 2026 21:14
…e PHP 8.1 and is deprecated as of 8.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CiuYmw4N6SSzfFyrwftUEj
@goloroden
goloroden requested a review from a team as a code owner October 23, 2026 19:29
@goloroden goloroden self-assigned this Oct 23, 2026
…for abortIn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CiuYmw4N6SSzfFyrwftUEj
@goloroden goloroden changed the title chore: Say how to abort a request sent while a stream is read, and leave out setAccessible in the tests. chore: Say how abortIn applies while a stream is read, and leave out setAccessible in the tests. Oct 23, 2026
@goloroden
goloroden merged commit 2c68c4d into main Oct 23, 2026
12 checks passed
@goloroden
goloroden deleted the 185-abort-within-loop-set-accessible branch October 23, 2026 19:47
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.

Say how to abort a request sent while a stream is read, and leave out setAccessible in the tests

1 participant