We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cb6f09 + 86b50d7 commit fbb2cf6Copy full SHA for fbb2cf6
src/Promise.php
@@ -2,6 +2,8 @@
2
3
namespace Http\Promise;
4
5
+use Psr\Http\Message\ResponseInterface;
6
+
7
/**
8
* Promise represents a value that may not be available yet, but will be resolved at some point in future.
9
* It acts like a proxy to the actual value.
@@ -56,11 +58,11 @@ public function getState();
56
58
*
57
59
* When called with the unwrap option
60
- * @param bool $unwrap
61
+ * @param bool $unwrap Whether to return resolved value / throw reason or not
62
- * @return mixed
63
+ * @return ResponseInterface|null Resolved value, null if $unwrap is set to false
64
- * @throws \Exception When the rejection reason is an exception.
65
+ * @throws \Http\Client\Exception The rejection reason.
66
*/
67
public function wait($unwrap = true);
68
}
0 commit comments