Skip to content

Document asynchronous command changes in the upgrade guide - #105

Merged
GrahamCampbell merged 1 commit into
3.0from
document-asynchronous-command-changes-3.0
Nov 20, 2026
Merged

GrahamCampbell merged 1 commit into
3.0from
document-asynchronous-command-changes-3.0

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Member

Guzzle Promises 4.0 keeps a promise pending while it adopts the state of a promise it was resolved with, which is how Guzzle follows a redirect or retries a request. For Guzzle Command 3.0 that changes two things a caller can see, although none of its own code changed: cancelling a command promise now also cancels a redirected or retried HTTP transfer that is in flight, where 2.x left it running, and the fulfilled and rejected callbacks of executeAll() and executeAllAsync() can run in a different order for commands whose transfers were redirected or retried. This adds an "Asynchronous Commands" section to the 3.0 upgrade guide, in the place the 2.0 guide has one, and a test that pins the cancellation.

@GrahamCampbell
GrahamCampbell marked this pull request as ready for review November 20, 2026 01:46
@GrahamCampbell
GrahamCampbell merged commit d685db1 into 3.0 Nov 20, 2026
22 checks passed
@GrahamCampbell
GrahamCampbell deleted the document-asynchronous-command-changes-3.0 branch November 20, 2026 01: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.

1 participant