Skip to content

Add Promise return type doc in Async client #107

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

Merged
merged 1 commit into from
Jan 25, 2016
Merged

Conversation

sagikazarmark
Copy link
Member

No description provided.

@sagikazarmark sagikazarmark added this to the 1.0.0 milestone Jan 25, 2016
@@ -19,7 +19,7 @@
*
* @param RequestInterface $request
*
* @return Promise
* @return Promise MUST return with a PSR-7 Response.
Copy link
Member

Choose a reason for hiding this comment

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

Not a fan :p

More like :

The promise resolve a ResponseInterface or fail with a Http\Client\Exception

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good to me.

@sagikazarmark sagikazarmark force-pushed the promise_result branch 2 times, most recently from 4929c24 to 3b9ad38 Compare January 25, 2016 22:22
@sagikazarmark
Copy link
Member Author

Looks better?

@joelwurtz
Copy link
Member

Would remove "MUST" as the message is more for the user, and people implementing the library must conform with the view of the user

@joelwurtz
Copy link
Member

A part from that 👍

joelwurtz added a commit that referenced this pull request Jan 25, 2016
Add Promise return type doc in Async client
@joelwurtz joelwurtz merged commit 6608e8c into master Jan 25, 2016
@sagikazarmark sagikazarmark deleted the promise_result branch January 25, 2016 22:47
Nyholm pushed a commit to Nyholm/httplug that referenced this pull request Dec 26, 2019
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