{"action":"closed","issue":{"url":"https://api.github.com/repos/clue/php-block-react/issues/15","repository_url":"https://api.github.com/repos/clue/php-block-react","labels_url":"https://api.github.com/repos/clue/php-block-react/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/clue/php-block-react/issues/15/comments","events_url":"https://api.github.com/repos/clue/php-block-react/issues/15/events","html_url":"https://github.com/clue/php-block-react/issues/15","id":126270414,"number":15,"title":"infinite  loop","user":{"login":"yonus","id":1323817,"avatar_url":"https://avatars.githubusercontent.com/u/1323817?v=3","gravatar_id":"","url":"https://api.github.com/users/yonus","html_url":"https://github.com/yonus","followers_url":"https://api.github.com/users/yonus/followers","following_url":"https://api.github.com/users/yonus/following{/other_user}","gists_url":"https://api.github.com/users/yonus/gists{/gist_id}","starred_url":"https://api.github.com/users/yonus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonus/subscriptions","organizations_url":"https://api.github.com/users/yonus/orgs","repos_url":"https://api.github.com/users/yonus/repos","events_url":"https://api.github.com/users/yonus/events{/privacy}","received_events_url":"https://api.github.com/users/yonus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clue/php-block-react/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T20:38:58Z","updated_at":"2016-03-09T15:26:51Z","closed_at":"2016-03-09T15:26:51Z","body":"hello ,\r\n\r\nI use guzzle library  , react promise , block react.  my problem is that  the system  loops  infinitely  when I call    as following\r\n\r\n```\r\n       $loop = React\\EventLoop\\Factory::create();\r\n        $requestPromise = $this->sendMessageTravelportApi($requestXml, $endpoint);\r\n        $responseXml = Clue\\React\\Block\\await($requestPromise, $loop);\r\n```\r\n\r\nthe requestPromise as following:\r\n\r\n```\r\n $requestDeferred = new React\\Promise\\Deferred();\r\n        $requestParams = new Request(\"POST\", $endpoint, $header, $message);\r\n        $client = new Client();\r\n        $client->sendAsync($requestParams)->then(\r\n                function (ResponseInterface $res) use($requestDeferred) {\r\n            // $res->getStatusCode() . \"\\n\";\r\n            $requestDeferred->resolve($res->getBody()->getContents());\r\n        }, function (RequestException $e) use($requestDeferred) {\r\n            $requestDeferred->reject();\r\n        });\r\n        return $requestDeferred->promise();\r\n```\r\n\r\nSo  I cant  find why system  loops infinitely.  "}}