{"action":"opened","issue":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/1416","repository_url":"https://api.github.com/repos/guzzle/guzzle","labels_url":"https://api.github.com/repos/guzzle/guzzle/issues/1416/labels{/name}","comments_url":"https://api.github.com/repos/guzzle/guzzle/issues/1416/comments","events_url":"https://api.github.com/repos/guzzle/guzzle/issues/1416/events","html_url":"https://github.com/guzzle/guzzle/issues/1416","id":137603848,"number":1416,"title":"Mutex update does not fixed concurrency generator issue.","user":{"login":"alexsup","id":13382954,"avatar_url":"https://avatars.githubusercontent.com/u/13382954?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsup","html_url":"https://github.com/alexsup","followers_url":"https://api.github.com/users/alexsup/followers","following_url":"https://api.github.com/users/alexsup/following{/other_user}","gists_url":"https://api.github.com/users/alexsup/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsup/subscriptions","organizations_url":"https://api.github.com/users/alexsup/orgs","repos_url":"https://api.github.com/users/alexsup/repos","events_url":"https://api.github.com/users/alexsup/events{/privacy}","received_events_url":"https://api.github.com/users/alexsup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-01T15:26:17Z","updated_at":"2016-03-01T15:26:17Z","closed_at":null,"body":"After pulling the mutex fix in promises (https://github.com/guzzle/promises/pull/20), guzzle/issues/1412 is still not fixed.\r\n\r\nTo recap...\r\n\r\nRunning the following in app/Http/routes.php (laravel on Forge & Digital Ocean):  \r\n\r\n```\r\nRoute::get('/',function(){\r\n\t$client = new \\GuzzleHttp\\Client();\r\n\r\n\t$requests = function ($total) {\r\n\t    $uri = 'https://api.github.com';\r\n\r\n\t    for ($i = 0; $i < $total; $i++) {\r\n\t        yield new \\GuzzleHttp\\Psr7\\Request('GET', $uri);\r\n\t    }\r\n\t};\r\n\r\n\t$pool = new \\GuzzleHttp\\Pool($client, $requests(10), [\r\n\t    'concurrency' => 5,\r\n\t    'fulfilled' => function ($response, $index) {\r\n\t        // this is delivered each successful response\r\n\t        var_dump(\"fulfilled\");\r\n\t    },\r\n\t    'rejected' => function ($reason, $index) {\r\n\t        // this is delivered each failed request\r\n\t        var_dump(\"rejected\");\r\n\t    },\r\n\t]);\r\n\r\n\t// Initiate the transfers and create a promise\r\n\t$promise = $pool->promise();\r\n\r\n\t// Force the pool of requests to complete.\r\n\t$promise->wait();\r\n});\r\n```\r\n\r\nCauses the following error:\r\n\r\n<img width=\"1007\" alt=\"screen shot 2016-02-29 at 11 21 46\" src=\"https://cloud.githubusercontent.com/assets/13382954/13431416/3f711f48-dfc1-11e5-9c3d-c37e282c8bfa.png\">\r\n\r\nThis issue isn't triggered if I run it as scheduled command nor does it happen if I run it locally (out of the box homestead setup).\r\n\r\nPlease can you let me know if you need to any further information.\r\n\r\nThank you!\r\n\r\nAB"}}