Skip to content
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

Ensure Async mode is still working on last version, Fix #297 #299

Closed

Conversation

romainruaud
Copy link
Contributor

Description

The explicit call to wait() in LegacyTransportWrapper was causing all the existing promises to resolve even if we plan to let them run async.

The missing parameter for performRequest and resultOrFuture was also preventing the correct detection that we are using the async mode.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

#297

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Romain Ruaud <[email protected]>
@@ -2155,7 +2155,7 @@ public function request(
string $method,
string $uri,
array $attributes = []
): array|string|null {
): \Traversable|array|string|null {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this just be iterable instead of \Traversable|array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep I agree, iterable is probably cleaner

@kimpepper
Copy link
Collaborator

Fixed in #300

@kimpepper kimpepper closed this Feb 19, 2025
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