From c1a7c0c9791cb4dcf1a3ee43fbc870281af7931f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 13 Sep 2019 11:37:54 +0100 Subject: [PATCH] Live blogging from SymfonyLive London 2019 --- .../2019-09-13-live-blogging-symfonylive-london.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/_posts/2019-09-13-live-blogging-symfonylive-london.md b/source/_posts/2019-09-13-live-blogging-symfonylive-london.md index 534f74d1..d84d127b 100644 --- a/source/_posts/2019-09-13-live-blogging-symfonylive-london.md +++ b/source/_posts/2019-09-13-live-blogging-symfonylive-london.md @@ -230,3 +230,14 @@ Notifier ``` - Responses are lazy, requests are concurrent +- Asychronus requests. Reading in network order +``` +foreach ($client->stream($responses) as $response => $chunk) { + if ($chunk->isLast()) { + + } else { + + } +} +``` +