if (null ===
$client) { $client =
$r->client;
} elseif ($r->client !==
$client) { throw new TransportException('Cannot stream AsyncResponse objects with many clients.'
);
} $asyncMap[$r->response
] =
$r;
$wrappedResponses[] =
$r->response;
if ($r->stream
) { yield from self::
passthruStream($response =
$r->response,
$r,
new FirstChunk(),
$asyncMap);
if (!
isset($asyncMap[$response])) { array_pop($wrappedResponses);
} if ($r->response !==
$response && !
isset($asyncMap[$r->response
])) { $asyncMap[$r->response
] =
$r;
$wrappedResponses[] =
$r->response;
} } }