File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \Promise ;
4
4
5
+ use Psr \Http \Message \ResponseInterface ;
6
+
5
7
/**
6
8
* Promise represents a value that may not be available yet, but will be resolved at some point in future.
7
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
58
60
*
59
- * @param bool $unwrap
61
+ * @param bool $unwrap Whether to return resolved value / throw reason or not
60
62
*
61
- * @return mixed
63
+ * @return ResponseInterface|null Resolved value, null if $unwrap is set to false
62
64
*
63
- * @throws \Exception When the rejection reason is an exception .
65
+ * @throws \Http\Client\ Exception The rejection reason.
64
66
*/
65
67
public function wait ($ unwrap = true );
66
68
}
You can’t perform that action at this time.
0 commit comments