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 22
33namespace Http \Promise ;
44
5+ use Psr \Http \Message \ResponseInterface ;
6+
57/**
68 * Promise represents a value that may not be available yet, but will be resolved at some point in future.
79 * It acts like a proxy to the actual value.
@@ -56,11 +58,11 @@ public function getState();
5658 *
5759 * When called with the unwrap option
5860 *
59- * @param bool $unwrap
61+ * @param bool $unwrap Whether to return resolved value / throw reason or not
6062 *
61- * @return mixed
63+ * @return ResponseInterface|null Resolved value, null if $unwrap is set to false
6264 *
63- * @throws \Exception When the rejection reason is an exception .
65+ * @throws \Http\Client\ Exception The rejection reason.
6466 */
6567 public function wait ($ unwrap = true );
6668}
You can’t perform that action at this time.
0 commit comments